AddLayerTest00.js 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. // Auto generated by Testing Dashboard
  2. // File : scripts/Layer/AddLayer/Tests/AddLayerTest00.js
  3. // Timestamp : 2015-04-22 09:55:05
  4. // Description :
  5. include('scripts/Pro/Developer/TestingDashboard/TdbTest.js');
  6. function AddLayerTest00() {
  7. TdbTest.call(this, 'scripts/Layer/AddLayer/Tests/AddLayerTest00.js');
  8. }
  9. AddLayerTest00.prototype = new TdbTest();
  10. AddLayerTest00.prototype.test00 = function() {
  11. qDebug('running AddLayerTest00.test00()...');
  12. this.setUp();
  13. this.dlgStart();
  14. this.dlgAppendCode('var map = new Map()');
  15. this.dlgAppendCode("map.put('DialogOpenedByTdb/LayerName', 'layer 1')");
  16. this.dlgAppendCode("map.put('DialogOpenedByTdb/Color', new RColor(0,0,0,255,RColor.Fixed))");
  17. this.dlgAppendCode("map.put('DialogOpenedByTdb/Lineweight', 25)");
  18. this.dlgAppendCode("map.put('DialogOpenedByTdb/Linetype', new RLinetypePattern(true,'Continuous','Solid line',[]))");
  19. this.dlgAppendCode("map.put('DialogOpenedByTdb/Parent', '')");
  20. this.dlgAppendCode("WidgetFactory.restoreState(dialog, 'DialogOpenedByTdb', undefined, false, undefined, map)");
  21. this.dlgEnd();
  22. TdbTest.clickOnWidget('MainWindow::LayerListProDock::LayerWidgetPro::Add');
  23. this.verifyDrawing('AddLayerTest00_000.dxf');
  24. this.tearDown();
  25. qDebug('finished AddLayerTest00.test00()');
  26. };