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

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

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

ShapeRectangleSizeTest01.prototype = new TdbTest();

ShapeRectangleSizeTest01.prototype.test00 = function() {
    qDebug('running ShapeRectangleSizeTest01.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadToolBar::MainToolsPanel::ShapeToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadToolBar::ShapeToolsPanel::ShapeRectangleSizeButton');
    this.setToolOption('Shape/CreatePolyline', 'false');
    this.setToolOption('Shape/Fill', 'true');
    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', 'true');
    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('ShapeRectangleSizeTest01_000.dxf');
    this.tearDown();
    qDebug('finished ShapeRectangleSizeTest01.test00()');
};

