| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Auto generated by Testing Dashboard
- // File : scripts/Draw/Hatch/HatchFromSelection/Tests/HatchFromSelectionTest08.js
- // Timestamp : 2015-11-24 14:42:44
- // Description :
- include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
- function HatchFromSelectionTest08() {
- TdbTest.call(this, 'scripts/Draw/Hatch/HatchFromSelection/Tests/HatchFromSelectionTest08.js');
- }
- HatchFromSelectionTest08.prototype = new TdbTest();
- HatchFromSelectionTest08.prototype.test00 = function() {
- qDebug('running HatchFromSelectionTest08.test00()...');
- this.setUp();
- this.importFile('scripts/Draw/Hatch/HatchFromSelection/Tests/data/hatch_block_line.dxf');
- TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::SelectToolsPanelButton');
- TdbTest.clickOnWidget('MainWindow::CadToolBar::SelectToolsPanel::SelectAllButton');
- TdbTest.clickOnWidget('MainWindow::CadToolBar::SelectToolsPanel::BackButton');
- this.dlgStart();
- this.dlgAppendCode('var map = new Map()');
- this.dlgAppendCode("map.put('DialogOpenedByTdb/Type', 'HatchPattern')");
- this.dlgAppendCode("map.put('DialogOpenedByTdb/Pattern', 'ANSI31')");
- this.dlgAppendCode("map.put('DialogOpenedByTdb/Scale', '1.0')");
- this.dlgAppendCode("map.put('DialogOpenedByTdb/Angle', '0.0')");
- this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
- this.dlgEnd();
- this.clickOnWidget('MainWindow::MainToolsPanel::HatchToolsPanelButton');
- this.clickOnWidget('MainWindow::HatchToolsPanel::HatchFromSelectionButton');
- this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
- var p = new RVector(34.63015, 8.670412);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.verifyDrawing('HatchFromSelectionTest08_000.dxf');
- this.tearDown();
- qDebug('finished HatchFromSelectionTest08.test00()');
- };
|