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

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

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

ArcTPRTest03.prototype = new TdbTest();

ArcTPRTest03.prototype.test00 = function() {
    qDebug('running ArcTPRTest03.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(100.667071, 49.929342);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(100.407632, -0.272114);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(104.947816, 37.605987);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(55.913835, 41.108414);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(53.060005, 41.886731);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('ArcTPRTest03_000.dxf');
    this.tearDown();
    qDebug('finished ArcTPRTest03.test00()');
};

