// Auto generated by Testing Dashboard
// File        : scripts/Information/InfoDistancePP/Tests/InfoDistancePPTest00.js
// Timestamp   : 2016-03-16 09:30:58
// Description : 

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

function InfoDistancePPTest00() {
    TdbTest.call(this, 'scripts/Information/InfoDistancePP/Tests/InfoDistancePPTest00.js');
}

InfoDistancePPTest00.prototype = new TdbTest();

InfoDistancePPTest00.prototype.test00 = function() {
    qDebug('running InfoDistancePPTest00.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::MainToolsPanel::InformationToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::InformationToolsPanel::InfoDistancePPButton');
    this.setToolOption('Information/AddToDrawing', 'true');
    this.setToolOption('Information/TextHeight', '1');
    this.updateToolOptions();
    this.setToolOption('Information/AddToDrawing', 'true');
    this.setToolOption('Information/TextHeight', '1');
    this.updateToolOptions();
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(9.6, 19.9);
    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(30.4, 10.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(36.2, 20);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(35.6, 20);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('InfoDistancePPTest00_000.dxf');
    this.tearDown();
    qDebug('finished InfoDistancePPTest00.test00()');
};

