// Auto generated by Testing Dashboard
// File        : scripts/Modify/Offset/Tests/OffsetTest01.js
// Timestamp   : 2016-02-03 17:52:12
// Description : 

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

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

OffsetTest01.prototype = new TdbTest();

OffsetTest01.prototype.test00 = function() {
    qDebug('running OffsetTest01.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::EllipseToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::EllipseToolsPanel::EllipseCPPButton');
    this.setZoom(6.9444444444444455, new RVector(17.848, 14.724, 0, true));
    var p = new RVector(10.376, 30.06);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(6.9444444444444455, new RVector(17.848, 14.724, 0, true));
    var p = new RVector(29.672, 29.916);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(6.9444444444444455, new RVector(17.848, 14.724, 0, true));
    var p = new RVector(9.944, 39.708);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(23.912, 3.42);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setZoom(6.9444444444444455, new RVector(21.448, 26.244, 0, true));
    var p = new RVector(10.664, -9.396);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(6.9444444444444455, new RVector(21.448, 26.244, 0, true));
    var p = new RVector(30.536, -0.612);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(6.9444444444444455, new RVector(21.448, 26.244, 0, true));
    var p = new RVector(10.52, -0.468);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(35.864, 10.62);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(21.1184, 14.7384);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    var p = new RVector(18.1808, 14.5656);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::EllipseToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::EllipseToolsPanel::EllipseOffsetButton');
    this.setToolOption('EllipseOffset/Distance', '5');
    this.setToolOption('EllipseOffset/Number', '1');
    this.updateToolOptions();
    this.setToolOption('EllipseOffset/Distance', '5');
    this.setToolOption('EllipseOffset/Number', '1');
    this.updateToolOptions();
    this.setZoom(5.787037037037038, new RVector(36.424, 27.7704, 0, true));
    var p = new RVector(26.9936, 23.2056);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(5.787037037037038, new RVector(36.424, 27.7704, 0, true));
    var p = new RVector(25.4384, 24.4152);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(5.787037037037038, new RVector(36.424, 27.7704, 0, true));
    var p = new RVector(27.8576, 3.852);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(5.787037037037038, new RVector(36.424, 27.7704, 0, true));
    var p = new RVector(25.4384, 3.1608);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(5.787037037037038, new RVector(36.424, 27.7704, 0, true));
    var p = new RVector(24.4016, 1.9512);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(43.7552, 17.676);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(41.6816, 17.676);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('OffsetTest01_000.dxf');
    this.tearDown();
    qDebug('finished OffsetTest01.test00()');
};

