ScaleTest09.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Modify/Scale/Tests/ScaleTest09.js
  3. // Timestamp : 2017-06-30 11:36:33
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function ScaleTest09() {
  7. TdbTest.call(this, 'scripts/Modify/Scale/Tests/ScaleTest09.js');
  8. }
  9. ScaleTest09.prototype = new TdbTest();
  10. ScaleTest09.prototype.test00 = function() {
  11. qDebug('running ScaleTest09.test00()...');
  12. this.setUp();
  13. this.importFile('scripts/Modify/Scale/Tests/data/entities.dxf');
  14. this.selectAll();
  15. TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
  16. TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::ScaleButton');
  17. this.setZoom(5.539728061000709, new RVector(31.5165, 14.9789, 0, true));
  18. var p = new RVector(-0.287543, 60.115018);
  19. this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
  20. this.dlgStart();
  21. this.dlgAppendCode('var map = new Map()');
  22. this.dlgAppendCode("map.put('DialogOpenedByTdb/groupBox', 'DeleteOriginal')");
  23. this.dlgAppendCode("map.put('DialogOpenedByTdb/NumberOfCopies', '2')");
  24. this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorX', '1.0')");
  25. this.dlgAppendCode("map.put('DialogOpenedByTdb/KeepProportions', false)");
  26. this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorY', '0.5')");
  27. this.dlgAppendCode("map.put('DialogOpenedByTdb/FactorByMouse', false)");
  28. this.dlgAppendCode("map.put('DialogOpenedByTdb/UseCurrentAttributes', false)");
  29. this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
  30. this.dlgEnd();
  31. this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
  32. this.verifyDrawing('ScaleTest09_000.dxf');
  33. this.tearDown();
  34. qDebug('finished ScaleTest09.test00()');
  35. };