// Auto generated by Testing Dashboard
// File        : scripts/Draw/Shape/ShapeRectangleSize/Tests/ShapeRectangleSizeTest00.js
// Timestamp   : 2015-04-23 14:59:58
// Description : 

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

function ShapeRectangleSizeTest00() {
    TdbTest.call(this, 'scripts/Draw/Shape/ShapeRectangleSize/Tests/ShapeRectangleSizeTest00.js');
}

ShapeRectangleSizeTest00.prototype = new TdbTest();

ShapeRectangleSizeTest00.prototype.test00 = function() {
    qDebug('running ShapeRectangleSizeTest00.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ShapeToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ShapeToolsPanel::ShapeRectangleSizeButton');
    this.setToolOption('Shape/CreatePolyline', 'false');
    this.setToolOption('Shape/Fill', 'false');
    this.setToolOption('ShapeRectangleSize/Width', '20');
    this.setToolOption('ShapeRectangleSize/Height', '10');
    this.setToolOption('ShapeRectangleSize/Angle', '30');
    this.setToolOption('ShapeRectangleSize/ReferencePoint', '4');
    this.updateToolOptions();
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(10, 20.3);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('Shape/CreatePolyline', 'true');
    this.setToolOption('Shape/Fill', 'false');
    this.setToolOption('ShapeRectangleSize/Width', '20');
    this.setToolOption('ShapeRectangleSize/Height', '10');
    this.setToolOption('ShapeRectangleSize/Angle', '30');
    this.setToolOption('ShapeRectangleSize/ReferencePoint', '4');
    this.updateToolOptions();
    this.setZoom(10, new RVector(5, 5, 0, true));
    var p = new RVector(39.8, 20.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(29.9, 16.1);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(29.9, 16);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(29.9, 16);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(29.6, 15.7);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('ShapeRectangleSizeTest00_000.dxf');
    this.tearDown();
    qDebug('finished ShapeRectangleSizeTest00.test00()');
};

