Files
zulip/frontend_tests/casperjs/samples/download.js
Tim Abbott f1074aa491 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.
2015-10-28 10:11:47 -07:00

15 lines
331 B
JavaScript

/*jshint strict:false*/
/*global CasperError console phantom require*/
/**
* download the google logo image onto the local filesystem
*/
var casper = require("casper").create();
casper.start("http://www.google.fr/", function() {
this.download("http://www.google.fr/images/srpr/logo3w.png", "logo.png");
});
casper.run();