SnapIntersectionTest05.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Snap/SnapIntersection/Tests/SnapIntersectionTest05.js
  3. // Timestamp : 2016-02-09 21:28:00
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function SnapIntersectionTest05() {
  7. TdbTest.call(this, 'scripts/Snap/SnapIntersection/Tests/SnapIntersectionTest05.js');
  8. }
  9. SnapIntersectionTest05.prototype = new TdbTest();
  10. SnapIntersectionTest05.prototype.test00 = function() {
  11. qDebug('running SnapIntersectionTest05.test00()...');
  12. this.setUp();
  13. this.importFile('scripts/Snap/SnapIntersection/Tests/data/polyline_xline.dxf');
  14. TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::PointToolsPanelButton');
  15. TdbTest.clickOnWidget('MainWindow::CadToolBar::PointToolsPanel::Point1PButton');
  16. this.setZoom(26.37037037037037, new RVector(-8.92697, -16.6194, 0, true));
  17. var p = new RVector(24.740169, 25.227528);
  18. this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
  19. this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
  20. var p = new RVector(26.75, 26.97191);
  21. this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
  22. this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
  23. var p = new RVector(26.712079, 27.047753);
  24. this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
  25. this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
  26. this.verifyDrawing('SnapIntersectionTest05_000.dxf');
  27. this.tearDown();
  28. qDebug('finished SnapIntersectionTest05.test00()');
  29. };