// Auto generated by Testing Dashboard
// File        : scripts/Modify/TrimBoth/Tests/TrimBothTest02.js
// Timestamp   : 2015-11-04 16:07:29
// Description : 

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

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

TrimBothTest02.prototype = new TdbTest();

TrimBothTest02.prototype.test00 = function() {
    qDebug('running TrimBothTest02.test00()...');
    this.setUp();
    this.importFile('scripts/Modify/TrimBoth/Tests/data/same_polylines.dxf');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ModifyToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ModifyToolsPanel::TrimBothButton');
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(17.465824, 29.743446);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(17.239232, 26.174625);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(36.782772, 29.686798);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(38.538858, 24.191948);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(12.310861, 17.904026);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(11.234551, 11.955993);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(31.571161, 14.731742);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(17.65289256198347, new RVector(-8.4588, -7.48081, 0, true));
    var p = new RVector(31.571161, 11.276217);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(24.830056, 19.603464);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(24.830056, 19.660112);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(24.773408, 19.603464);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(24.71676, 19.603464);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('TrimBothTest02_000.dxf');
    this.tearDown();
    qDebug('finished TrimBothTest02.test00()');
};

