ReverseTest01.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Modify/Reverse/Tests/ReverseTest01.js
  3. // Timestamp : 2022-06-08 15:31:09
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function ReverseTest01() {
  7. TdbTest.call(this, 'scripts/Modify/Reverse/Tests/ReverseTest01.js');
  8. }
  9. ReverseTest01.prototype = new TdbTest();
  10. ReverseTest01.prototype.test00 = function() {
  11. qDebug('running ReverseTest01.test00()...');
  12. this.setUp();
  13. this.importFile('scripts/Modify/Reverse/Tests/data/polyline01.dxf');
  14. this.selectAll();
  15. var w = objectFromPath('MainWindow::CadToolBar::PolylineToolsPanel');
  16. this.sendMouseEvent(w, QEvent.MouseButtonPress, new QPoint(22, 510), Qt.RightButton, 2, 0);
  17. var w = objectFromPath('MainWindow::CadToolBar::PolylineToolsPanel');
  18. this.sendMouseEvent(w, QEvent.MouseButtonRelease, new QPoint(24, 509), Qt.RightButton, 0, 0);
  19. var w = objectFromPath('MainWindow::CadToolBar::PolylineToolsPanel');
  20. this.sendMouseEvent(w, QEvent.MouseButtonPress, new QPoint(28, 495), Qt.RightButton, 2, 0);
  21. var w = objectFromPath('MainWindow::CadToolBar::PolylineToolsPanel');
  22. this.sendMouseEvent(w, QEvent.MouseButtonRelease, new QPoint(29, 495), Qt.RightButton, 0, 0);
  23. TdbTest.clickOnWidget('MainWindow::CadToolBar::PolylineToolsPanel::BackButton');
  24. TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
  25. var w = objectFromPath('MainWindow::CadToolBar::ModifyToolsPanel');
  26. this.sendMouseEvent(w, QEvent.MouseButtonPress, new QPoint(47, 361), Qt.RightButton, 2, 0);
  27. var w = objectFromPath('MainWindow::CadToolBar::ModifyToolsPanel');
  28. this.sendMouseEvent(w, QEvent.MouseButtonRelease, new QPoint(47, 360), Qt.RightButton, 0, 0);
  29. TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::BackButton');
  30. this.triggerCommand('rv');
  31. this.verifyDrawing('ReverseTest01_000.dxf');
  32. this.tearDown();
  33. qDebug('finished ReverseTest01.test00()');
  34. };