// Auto generated by Testing Dashboard
// File        : scripts/Draw/Arc/ArcTPR/Tests/ArcTPRTest04.js
// Timestamp   : Fri Dec 13 09:09:56 2024
// Description : 

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

function ArcTPRTest04() {
    TdbTest.call(this, 'scripts/Draw/Arc/ArcTPR/Tests/ArcTPRTest04.js');
}

ArcTPRTest04.prototype = new TdbTest();

ArcTPRTest04.prototype.test00 = function() {
    qDebug('running ArcTPRTest04.test00()...');
    this.setUp();
    this.importFile('scripts/Draw/Arc/ArcTPR/Tests/data/four_solutions.dxf');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ArcToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ArcToolsPanel::ArcTPRButton');
    this.setToolOption('ArcTPR/Radius', '80');
    this.updateToolOptions();
    var p = new RVector(93.273058, 52.134574);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(99.888754, 0.376483);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(116.752292, 25.671791);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(56.043554, 29.952535);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(53.968042, 31.37945);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('ArcTPRTest04_000.dxf');
    this.tearDown();
    qDebug('finished ArcTPRTest04.test00()');
};

