AddLayerTest01.js 969 B

12345678910111213141516171819202122232425262728
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Layer/AddLayer/Tests/AddLayerTest01.js
  3. // Timestamp : 2015-04-22 09:56:15
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function AddLayerTest01() {
  7. TdbTest.call(this, 'scripts/Layer/AddLayer/Tests/AddLayerTest01.js');
  8. }
  9. AddLayerTest01.prototype = new TdbTest();
  10. AddLayerTest01.prototype.test00 = function() {
  11. qDebug('running AddLayerTest01.test00()...');
  12. this.setUp();
  13. this.dlgStart();
  14. this.dlgAppendCode('var map = new Map()');
  15. this.dlgAppendCode("map.put('DialogOpenedByTdb/LayerName', 'MyLayer')");
  16. this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
  17. this.dlgEnd();
  18. TdbTest.clickOnWidget('MainWindow::LayerListProDock::LayerWidgetPro::Add');
  19. this.verifyDrawing('AddLayerTest01_000.dxf');
  20. this.tearDown();
  21. qDebug('finished AddLayerTest01.test00()');
  22. };