// Auto generated by Testing Dashboard
// File        : scripts/Modify/Trim/Tests/TrimTest04.js
// Timestamp   : 2015-11-04 15:56:13
// Description : 

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

function TrimTest04() {
    TdbTest.call(this, 'scripts/Modify/Trim/Tests/TrimTest04.js');
}

TrimTest04.prototype = new TdbTest();

TrimTest04.prototype.test00 = function() {
    qDebug('running TrimTest04.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::PolylineToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::PolylineToolsPanel::DrawPolylineButton');
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(10.029974, 10.133291);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(10.081633, 20.051658);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('DrawPolyline/ArcSegment', 'true');
    this.setToolOption('DrawPolyline/Radius', '10');
    this.setToolOption('DrawPolyline/Sweep', '0.0');
    this.setToolOption('DrawPolyline/Restrict', 'false');
    this.updateToolOptions();
    this.setToolOption('DrawPolyline/ArcSegment', 'true');
    this.setToolOption('DrawPolyline/Radius', '10');
    this.setToolOption('DrawPolyline/Sweep', '0.0');
    this.setToolOption('DrawPolyline/Restrict', 'false');
    this.updateToolOptions();
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(20, 26.663903);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(25.579082, 24.132653);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(16.022321, 24.080995);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(19.948342, 20.103316);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(29.970026, 19.948342);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(22.169643, 25.010842);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(20.103316, 24.700893);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(12.354592, 22.996173);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::TrimButton');
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(16.228954, 23.357781);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(19.358024691358025, new RVector(-4.91582, -8.58355, 0, true));
    var p = new RVector(10.753189, 24.132653);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(13.904337, 20.723214);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(13.852679, 20.826531);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(13.646046, 20.878189);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(13.491071, 20.723214);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('TrimTest04_000.dxf');
    this.tearDown();
    qDebug('finished TrimTest04.test00()');
};

