Commit d8a82e11 d8a82e116af817e8fd1b81660ad8f289f06accc2 by Laurent Jouanneau

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)
1 parent 5c0c7083
...@@ -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},
......