// Auto generated by Testing Dashboard
// File        : scripts/Snap/SnapDistanceManual/Tests/SnapDistanceManualTest00.js
// Timestamp   : 2016-12-19 10:17:39
// Description : 

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

function SnapDistanceManualTest00() {
    TdbTest.call(this, 'scripts/Snap/SnapDistanceManual/Tests/SnapDistanceManualTest00.js');
}

SnapDistanceManualTest00.prototype = new TdbTest();

SnapDistanceManualTest00.prototype.test00 = function() {
    qDebug('running SnapDistanceManualTest00.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::LineToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::LineToolsPanel::Line2PButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::SnapToolsPanel::SnapDistanceManualButton');
    this.setToolOption('Line/Type', 'TypeSegment');
    this.setToolOption('Line2P/Restrict', 'false');
    this.setToolOption('SnapDistanceManual/Distance', '10');
    this.setToolOption('SnapDistanceManual/TypeCombo', 'Distance');
    this.updateToolOptions();
    this.setToolOption('Line/Type', 'TypeSegment');
    this.setToolOption('Line2P/Restrict', 'false');
    this.setToolOption('SnapDistanceManual/Distance', '10');
    this.setToolOption('SnapDistanceManual/TypeCombo', 'Distance');
    this.updateToolOptions();
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(10.3, -0.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(10.1, 30);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(40.1, 9.7);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(42.6, 19.8);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(37.4, 19.5);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(36.7, 19.2);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('SnapDistanceManualTest00_000.dxf');
    this.tearDown();
    qDebug('finished SnapDistanceManualTest00.test00()');
};

