// Auto generated by Testing Dashboard
// File        : scripts/Draw/Polyline/DrawPolyline/Tests/DrawPolylineTest02.js
// Timestamp   : Tue May 20 09:54:17 2025
// Description : 

include('scripts/Developer/TestingDashboard/TdbTest.js');

function DrawPolylineTest02() {
    TdbTest.call(this, 'scripts/Draw/Polyline/DrawPolyline/Tests/DrawPolylineTest02.js');
}

DrawPolylineTest02.prototype = new TdbTest();

DrawPolylineTest02.prototype.test00 = function() {
    qDebug('running DrawPolylineTest02.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::PolylineToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::PolylineToolsPanel::DrawPolylineProButton');
    this.setZoom(10, new RVector(5,5));
    var p = new RVector(10.1, 19.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(19.8, 19.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'true');
    this.setToolOption('DrawPolylinePro/UseRadius', 'false');
    this.setToolOption('DrawPolylinePro/Radius', '8');
    this.setToolOption('DrawPolylinePro/UseSweep', 'false');
    this.setToolOption('DrawPolylinePro/Sweep', '0.0');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(30.1, 30);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(50, 29.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(70.1, 9.8);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(70.1, 30.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolylinePro/ArcMode', 'false');
    this.setToolOption('DrawPolylinePro/UseRadius', 'false');
    this.setToolOption('DrawPolylinePro/Radius', '8');
    this.setToolOption('DrawPolylinePro/UseSweep', 'false');
    this.setToolOption('DrawPolylinePro/Sweep', '0.0');
    this.setToolOption('DrawPolylinePro/Restrict', 'false');
    this.updateToolOptions();
    var p = new RVector(70.2, 49.9);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(77.5, 51.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(77.3, 51);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('DrawPolylineTest02_000.dxf');
    this.tearDown();
    qDebug('finished DrawPolylineTest02.test00()');
};

