// Auto generated by Testing Dashboard
// File        : scripts/Modify/TrimBoth/Tests/TrimBothTest04.js
// Timestamp   : 2015-11-04 21:22:48
// Description : 

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

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

TrimBothTest04.prototype = new TdbTest();

TrimBothTest04.prototype.test00 = function() {
    qDebug('running TrimBothTest04.test00()...');
    this.setUp();
    this.importFile('scripts/Modify/TrimBoth/Tests/data/line_ray_xline.dxf');
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::ModifyToolsPanel::TrimBothButton');
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(17.452247, 17.295412);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(19.947566, 16.838951);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(12.339888, 12.335206);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(12.43118, 10.052903);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(19.917135, 12.09176);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(32.86153846153846, new RVector(-9.11423, -8.77481, 0, true));
    var p = new RVector(17.786985, 10.083333);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(17.056648, 13.826311);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(16.874064, 13.613296);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('TrimBothTest04_000.dxf');
    this.tearDown();
    qDebug('finished TrimBothTest04.test00()');
};

