| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- /**
- * 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/Arc/Arc2PR/Tests/Arc2PRTest00.js
- // Timestamp : 2011-03-01 10:09:09
- // Description : 4 arcs using all combinations of clockwise, counter clockwise, solution1 and solution2
- include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
- function Arc2PRTest00() {
- TdbTest.call(this, 'scripts/Draw/Arc/Arc2PR/Tests/Arc2PRTest00.js');
- }
- Arc2PRTest00.prototype = new TdbTest();
- Arc2PRTest00.prototype.test00 = function() {
- qDebug('running Arc2PRTest00.test00()...');
- this.setUp();
- this.clickOnWidget('MainWindow::MainToolsPanel::ArcToolsPanelButton');
- this.clickOnWidget('MainWindow::ArcToolsPanel::Arc2PRButton');
- this.setToolOption('Arc2PR/Radius', [ 10, 0 ] );
- this.setToolOption('Arc2PR/Direction', 'CounterClockwise');
- this.setToolOption('Arc2PR/Solution', 'Solution1');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(10, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(10, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(20, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(20, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setToolOption('Arc2PR/Radius', [ 10, 0 ] );
- this.setToolOption('Arc2PR/Direction', 'Clockwise');
- this.setToolOption('Arc2PR/Solution', 'Solution1');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(9.9, 20.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(9.9, 20.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(20.1, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(20.1, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setToolOption('Arc2PR/Radius', [ 10, 0 ] );
- this.setToolOption('Arc2PR/Direction', 'CounterClockwise');
- this.setToolOption('Arc2PR/Solution', 'Solution2');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(9.9, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(9.9, 20);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(19.8, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(19.8, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setToolOption('Arc2PR/Radius', [ 10, 0 ] );
- this.setToolOption('Arc2PR/Direction', 'Clockwise');
- this.setToolOption('Arc2PR/Solution', 'Solution2');
- this.updateToolOptions();
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(10, 20.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(10, 20.1);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- this.setZoom(10, new RVector(5, 5, 0) );
- var p = new RVector(20, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
- var p = new RVector(20, 19.9);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
- var p = new RVector(25.1, 17.4);
- this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
- var p = new RVector(25.1, 17.4);
- this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
- this.verifyDrawing('Arc2PRTest00_000.dxf');
- this.tearDown();
- qDebug('finished Arc2PRTest00.test00()');
- };
|