/**
 * Copyright (c) 2011-2013 by Andrew Mustun. All rights reserved.
 * 
 * This file is part of the QCAD project.
 *
 * QCAD is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * QCAD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with QCAD.
 */
// Auto generated by Testing Dashboard
// File        : scripts/Modify/Trim/Tests/TrimTest01.js
// Timestamp   : 2011-08-16 11:10:40
// Description : 

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

function TrimTest01() {
    TdbTest.call(this, 'scripts/Modify/Trim/Tests/TrimTest01.js');
}

TrimTest01.prototype = new TdbTest();

TrimTest01.prototype.test00 = function() {
    qDebug('running TrimTest01.test00()...');
    this.setUp();
    var w = objectFromPath('MainWindow::CadToolBar::MainToolsPanel');
    this.sendMouseEvent(w, QEvent.MouseButtonPress, new QPoint(22, 446), Qt.LeftButton, 1, 0);
    var w = objectFromPath('MainWindow::CadToolBar::MainToolsPanel');
    this.sendMouseEvent(w, QEvent.MouseButtonRelease, new QPoint(22, 446), Qt.LeftButton, 0, 0);
    this.importFile('scripts/Modify/Trim/Tests/data/entities.dxf');
    this.triggerCommand('trim');
    this.setZoom(10.379746835443038, new RVector(5.37439, 4.21341, 0) );
    var p = new RVector(28.634146, 24.785366);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(10.379746835443038, new RVector(5.37439, 4.21341, 0) );
    var p = new RVector(38.364634, 30.276829);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(10.379746835443038, new RVector(5.37439, 4.21341, 0) );
    var p = new RVector(31.139024, 16.789024);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.setZoom(10.379746835443038, new RVector(5.37439, 4.21341, 0) );
    var p = new RVector(16.013415, 8.792683);
    this.sendMouseEventModelPos(QEvent.MouseButtonPress, p, Qt.LeftButton, 1, 0);
    this.sendMouseEventModelPos(QEvent.MouseButtonRelease, p, Qt.LeftButton, 0, 0);
    this.verifyDrawing('TrimTest01_000.dxf');
    this.tearDown();
    qDebug('finished TrimTest01.test00()');
};

