// Auto generated by Testing Dashboard
// File        : scripts/Modify/Scale/Tests/ScaleTest08.js
// Timestamp   : 2017-06-30 11:36:33
// Description : 

include('scripts/Developer/TestingDashboard/TdbTest.js');

function ScaleTest08() {
    TdbTest.call(this, 'scripts/Modify/Scale/Tests/ScaleTest08.js');
}

ScaleTest08.prototype = new TdbTest();

ScaleTest08.prototype.test00 = function() {
    qDebug('running ScaleTest08.test00()...');
    this.setUp();
    this.importFile('scripts/Modify/Scale/Tests/data/mtext.dxf');
    this.selectAll();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::ScaleButton');
    this.setZoom(5.539728061000709, new RVector(31.5165, 14.9789, 0, true));
    var p = new RVector(-0.287543, 60.115018);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.dlgStart();
    this.dlgAppendCode('var map = new MapCompat()');
    this.dlgAppendCode("map.put('DialogOpenedByTdb/groupBox', 'DeleteOriginal')");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/NumberOfCopies', '2')");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorX', '0.5')");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/KeepProportions', true)");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorY', '0.5')");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorByMouse', false)");
    this.dlgAppendCode("map.put('DialogOpenedByTdb/UseCurrentAttributes', false)");
    this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
    this.dlgEnd();
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.verifyDrawing('ScaleTest08_000.dxf');
    this.tearDown();
    qDebug('finished ScaleTest08.test00()');
};

