Tests & Gecko: fixed error about createDocument in utils.js
The third parameter is mandatory in Gecko 25 and lower. It is optional since Gecko 26 (not released yet at that time)
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -29,7 +29,7 @@ casper.test.begin('utils.betterInstanceOf() tests', 13, function(test) { | ... | @@ -29,7 +29,7 @@ casper.test.begin('utils.betterInstanceOf() tests', 13, function(test) { |
29 | // need two objects to test inheritance | 29 | // need two objects to test inheritance |
30 | function Cow(){} var daisy = new Cow(); | 30 | function Cow(){} var daisy = new Cow(); |
31 | function SuperCow(){} SuperCow.prototype = new Cow(); var superDaisy = new SuperCow(); | 31 | function SuperCow(){} SuperCow.prototype = new Cow(); var superDaisy = new SuperCow(); |
32 | var date = new Date(); var regex = new RegExp(); var xmlDoc = document.implementation.createDocument("<y>", "x"); | 32 | var date = new Date(); var regex = new RegExp(); var xmlDoc = document.implementation.createDocument("<y>", "x", null); |
33 | var testCases = [ | 33 | var testCases = [ |
34 | {subject: 1, fn: Number, expected: true}, | 34 | {subject: 1, fn: Number, expected: true}, |
35 | {subject: '1', fn: String, expected: true}, | 35 | {subject: '1', fn: String, expected: true}, | ... | ... |
-
Please register or sign in to post a comment