| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /**
- * Copyright (c) 2011-2013 by Andrew Mustun. All rights reserved.
- *
- * This file is part of the QCAD project.
- *
- * QCAD is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * QCAD is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with QCAD.
- */
- // Auto generated by Testing Dashboard
- // File : scripts/Draw/Circle/CircleConcentricThrough/Tests/CircleConcentricThroughTest00.js
- // Timestamp : 2011-02-28 14:11:43
- // Description : 3 concentric circles (2 inside, 1 outside) going through the end points of a line
- include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
- function CircleConcentricThroughTest00() {
- TdbTest.call(this, 'scripts/Draw/Circle/CircleConcentricThrough/Tests/CircleConcentricThroughTest00.js');
- }
- CircleConcentricThroughTest00.prototype = new TdbTest();
- CircleConcentricThroughTest00.prototype.test00 = function() {
- qDebug('running CircleConcentricThroughTest00.test00()...');
- this.setUp();
- this.clickOnWidget('MainWindow::MainToolsPanel::LineToolsPanelButton');
- this.clickOnWidget('MainWindow::LineToolsPanel::Line2PButton');
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(27.1, 14.2);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(27.1, 14.2);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(40, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(40, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- var p = new RVector(15, 22.6);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(15, 22.6);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- var p = new RVector(8.5, 27.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(8.5, 27.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- this.clickOnWidget('MainWindow::MainToolsPanel::CircleToolsPanelButton');
- this.clickOnWidget('MainWindow::CircleToolsPanel::CircleCPButton');
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(9.8, 14.2);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(9.8, 14.2);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(33.7, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(33.7, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- var p = new RVector(24.6, 10.6);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(24.6, 10.6);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- this.clickOnWidget('MainWindow::MainToolsPanel::CircleToolsPanelButton');
- this.clickOnWidget('MainWindow::CircleToolsPanel::CircleConcentricThroughButton');
- this.setToolOption('CircleConcentricThrough/Number', '2');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(32.7, 19.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(32.7, 19.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(26.9, 14);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(26.9, 14);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setToolOption('CircleConcentricThrough/Number', '1');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(40, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(40, 13.8);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- var p = new RVector(43.8, 10.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(43.8, 10.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- var p = new RVector(45.6, 9.7);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(45.6, 9.7);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- this.verifyDrawing('CircleConcentricThroughTest00_000.dxf');
- this.tearDown();
- qDebug('finished CircleConcentricThroughTest00.test00()');
- };
|