mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
Move frontend tests out of zerver/tests/.
This fixes an unfortunate bug where the backend tests in zerver/tests.py were not being run automatically, and also makes these a bit easier to find.
This commit is contained in:
20
frontend_tests/casperjs/samples/each.js
Normal file
20
frontend_tests/casperjs/samples/each.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*jshint strict:false*/
|
||||
/*global CasperError console phantom require*/
|
||||
|
||||
var casper = require("casper").create();
|
||||
|
||||
var links = [
|
||||
"http://google.com/",
|
||||
"http://yahoo.com/",
|
||||
"http://bing.com/"
|
||||
];
|
||||
|
||||
casper.start();
|
||||
|
||||
casper.each(links, function(self, link) {
|
||||
this.thenOpen(link, function() {
|
||||
this.echo(this.getTitle() + " - " + link);
|
||||
});
|
||||
});
|
||||
|
||||
casper.run();
|
||||
Reference in New Issue
Block a user