vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
686 B

  1. gemini.suite('timline', function(suite) {
  2. var fs = require('fs');
  3. var path = require('path');
  4. var baseDir = '/test/gemini/tests/dynamic/';
  5. var files = fs.readdirSync('.' + baseDir);
  6. for (var i in files) {
  7. var file = files[i];
  8. if(path.extname(file) === ".test.json") {
  9. var name = file.split('.test.json')[0];
  10. suite.setUrl(baseDir + '/' + name)
  11. .before(function(actions) {
  12. actions.wait(1000);
  13. })
  14. .setCaptureElements('#timeline')
  15. .capture(name);
  16. }
  17. }
  18. /*
  19. suite.setUrl('/test/gemini/tests/dynamic/noOptions')
  20. .before(function(actions) {
  21. actions.wait(1000);
  22. })
  23. .setCaptureElements('#timeline')
  24. .capture('noOptions');
  25. */
  26. });