AddLayerTest02.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Layer/AddLayer/Tests/AddLayerTest02.js
  3. // Timestamp : 2015-04-22 10:05:08
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function AddLayerTest02() {
  7. TdbTest.call(this, 'scripts/Layer/AddLayer/Tests/AddLayerTest02.js');
  8. }
  9. AddLayerTest02.prototype = new TdbTest();
  10. AddLayerTest02.prototype.test00 = function() {
  11. qDebug('running AddLayerTest02.test00()...');
  12. this.setUp();
  13. this.dlgStart();
  14. this.dlgAppendCode('var map = new Map()');
  15. this.dlgAppendCode("map.put('DialogOpenedByTdb/LayerName', 'parent')");
  16. this.dlgAppendCode("map.put('DialogOpenedByTdb/Parent', '')");
  17. this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
  18. this.dlgEnd();
  19. TdbTest.clickOnWidget('MainWindow::LayerListProDock::LayerWidgetPro::Add');
  20. this.dlgStart();
  21. this.dlgAppendCode('var map = new Map()');
  22. this.dlgAppendCode("map.put('DialogOpenedByTdb/LayerName', 'sublayer')");
  23. this.dlgAppendCode("map.put('DialogOpenedByTdb/Parent', 'parent')");
  24. this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
  25. this.dlgEnd();
  26. TdbTest.clickOnWidget('MainWindow::LayerListProDock::LayerWidgetPro::Add');
  27. this.verifyDrawing('AddLayerTest02_000.dxf');
  28. this.tearDown();
  29. qDebug('finished AddLayerTest02.test00()');
  30. };