// Auto generated by Testing Dashboard
// File        : scripts/Draw/Ellipse/EllipseRR/Tests/EllipseRRTest00.js
// Timestamp   : 2015-04-21 18:13:01
// Description : 

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

function EllipseRRTest00() {
    TdbTest.call(this, 'scripts/Draw/Ellipse/EllipseRR/Tests/EllipseRRTest00.js');
}

EllipseRRTest00.prototype = new TdbTest();

EllipseRRTest00.prototype.test00 = function() {
    qDebug('running EllipseRRTest00.test00()...');
    this.setUp();
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::MainToolsPanel::EllipseToolsPanelButton');
    TdbTest.clickOnWidget('MainWindow::CadQToolBar::CadToolBar::EllipseToolsPanel::EllipseRRButton');
    // key: '1'
    this.pressAndReleaseKeyOnGv(0x31, 0);
    this.setToolOption('EllipseRR/XRadius', '100');
    this.setToolOption('EllipseRR/YRadius', '50');
    this.setToolOption('EllipseRR/Angle', '0');
    this.setToolOption('EllipseRR/ReferencePoint', '6');
    this.updateToolOptions();
    this.setZoom(0.934638789871793, new RVector(263.002, 217.415, 0, true));
    var p = new RVector(4.481087, 93.935108);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '7');
    this.updateToolOptions();
    var p = new RVector(141.43239, 68.256739);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setZoom(0.934638789871793, new RVector(6.21823, 200.296, 0, true));
    var p = new RVector(299.782334, 98.214836);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '8');
    this.updateToolOptions();
    var p = new RVector(412.1252, 51.137826);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setZoom(0.934638789871793, new RVector(-64.3973, 199.226, 0, true));
    var p = new RVector(600.433241, 99.284768);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(286.943149, -50.505719);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '3');
    this.updateToolOptions();
    this.setZoom(0.934638789871793, new RVector(60.7848, 299.8, 0, true));
    var p = new RVector(-0.868573, -100.792526);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '4');
    this.updateToolOptions();
    this.setZoom(0.934638789871793, new RVector(60.7848, 299.8, 0, true));
    var p = new RVector(304.062062, -100.792526);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '5');
    this.updateToolOptions();
    var p = new RVector(346.859344, -123.261099);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setZoom(0.934638789871793, new RVector(-123.244, 300.87, 0, true));
    var p = new RVector(603.643037, -105.072254);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '0');
    this.updateToolOptions();
    var p = new RVector(428.17418, -177.827634);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setZoom(0.934638789871793, new RVector(83.2533, 385.394, 0, true));
    var p = new RVector(-5.148301, -301.939752);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '1');
    this.updateToolOptions();
    this.setZoom(0.934638789871793, new RVector(83.2533, 385.394, 0, true));
    var p = new RVector(299.782334, -299.799888);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(304.062062, -231.324236);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.MidButton, 4, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.MidButton, 0, 0);
    this.setToolOption('EllipseRR/ReferencePoint', '2');
    this.updateToolOptions();
    this.setZoom(0.934638789871793, new RVector(-98.6351, 383.255, 0, true));
    var p = new RVector(605.782901, -300.86982);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    var p = new RVector(582.244396, -188.526954);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(553.356231, -187.457022);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(553.356231, -185.317158);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    var p = new RVector(553.356231, -185.317158);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.RightButton, 2, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.RightButton, 0, 0);
    this.verifyDrawing('EllipseRRTest00_000.dxf');
    this.tearDown();
    qDebug('finished EllipseRRTest00.test00()');
};

