BreakOutTest17.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Modify/BreakOut/Tests/BreakOutTest17.js
  3. // Timestamp : 2021-05-15 16:12:08
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function BreakOutTest17() {
  7. TdbTest.call(this, 'scripts/Modify/BreakOut/Tests/BreakOutTest17.js');
  8. }
  9. BreakOutTest17.prototype = new TdbTest();
  10. BreakOutTest17.prototype.test00 = function() {
  11. qDebug('running BreakOutTest17.test00()...');
  12. this.setUp();
  13. this.importFile('scripts/Modify/BreakOut/Tests/data/full_circle_line.dxf');
  14. TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
  15. TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::BreakOutProButton');
  16. this.setToolOption('BreakOutPro/RemoveSegment', 'true');
  17. this.setToolOption('BreakOutPro/LineMode', 'false');
  18. this.updateToolOptions();
  19. this.setZoom(20.571428571428573, new RVector(-1.8055555555555571,-19.65972222222222));
  20. var p = new RVector(22.805556, 32.152778);
  21. this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
  22. this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
  23. this.verifyDrawing('BreakOutTest17_000.dxf');
  24. this.tearDown();
  25. qDebug('finished BreakOutTest17.test00()');
  26. };