mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
added Function.prototype.bind polyfill for PhantomJS. Make Casper happy.
This commit is contained in:
@ -1,8 +1,12 @@
|
||||
casper
|
||||
.start(casper.cli.get('baseUrl'))
|
||||
.then(function () {
|
||||
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
|
||||
})
|
||||
.run(function () {
|
||||
this.test.done();
|
||||
});
|
||||
.start(casper.cli.get('baseUrl')+"?debug")
|
||||
.then(function () {
|
||||
// If there was a JS error after the page load, casper won't perform asserts
|
||||
this.test.assertExists('html', 'Casper JS cannot assert DOM elements. A JS error has probably occured.');
|
||||
|
||||
this.test.assertExists('#drawing-canvas-container canvas', 'Check if drawing canvas element is created');
|
||||
|
||||
})
|
||||
.run(function () {
|
||||
this.test.done();
|
||||
});
|
||||
|
Reference in New Issue
Block a user