/** * 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/Line/Line2P/Tests/LinesSnapPolarCoordinate.js // Timestamp : 2011-02-17 14:12:54 // Description : Lines drawn with polar coordinate snap include('scripts/Pro/Developer/TestingDashboard/TdbTest.js'); function LinesSnapPolarCoordinate() { TdbTest.call(this, 'scripts/Draw/Line/Line2P/Tests/LinesSnapPolarCoordinate.js'); } LinesSnapPolarCoordinate.prototype = new TdbTest(); LinesSnapPolarCoordinate.prototype.test00 = function() { qDebug('running LinesSnapPolarCoordinate.test00()...'); this.setUp(); this.clickOnWidget('MainWindow::MainToolsPanel::LineToolsPanelButton'); this.clickOnWidget('MainWindow::LineToolsPanel::Line2PButton'); this.clickOnWidget('MainWindow::SnapToolsPanel::SnapCoordinatePolarButton'); this.setToolOption('SnapCoordinatePolar/R', [ 10, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 15, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 10, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 30, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 10, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 45, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 20, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 60, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 20, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 90, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 20, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 146, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 15, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 177, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 15, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 220, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.clickOnWidget('MainWindow::Options::Set'); this.setToolOption('SnapCoordinatePolar/R', [ 15, 0 ] ); this.setToolOption('SnapCoordinatePolar/A', [ 220, 0 ] ); this.setToolOption('SnapCoordinatePolar/Relative', 'false'); this.updateToolOptions(); this.sendMouseEventToGv(QEvent.MouseButtonPress, new QPoint(253, 260), Qt.RightButton, 2, 0); this.sendMouseEventToGv(QEvent.MouseButtonRelease, new QPoint(253, 260), Qt.RightButton, 0, 0); this.sendMouseEventToGv(QEvent.MouseButtonPress, new QPoint(272, 256), Qt.RightButton, 2, 0); this.sendMouseEventToGv(QEvent.MouseButtonRelease, new QPoint(272, 256), Qt.RightButton, 0, 0); this.verifyDrawing('LinesSnapPolarCoordinate_000.dxf'); this.tearDown(); qDebug('finished LinesSnapPolarCoordinate.test00()'); };