Commit 81648cdd 81648cddf3fcfb96a4772a91d278c014efa6cb58 by Mickaël Andrieu

Moved global XMLDocument annotation

From modules\utils.js to modules\tester.js
1 parent 6777b15b
...@@ -849,6 +849,7 @@ Tester.prototype.assertType = function assertType(subject, type, message) { ...@@ -849,6 +849,7 @@ Tester.prototype.assertType = function assertType(subject, type, message) {
849 */ 849 */
850 Tester.prototype.assertInstanceOf = function assertInstanceOf(subject, constructor, message) { 850 Tester.prototype.assertInstanceOf = function assertInstanceOf(subject, constructor, message) {
851 "use strict"; 851 "use strict";
852 /*global XMLDocument */
852 if (utils.betterTypeOf(constructor) !== "function") { 853 if (utils.betterTypeOf(constructor) !== "function") {
853 throw new CasperError('Subject is null or undefined.'); 854 throw new CasperError('Subject is null or undefined.');
854 } 855 }
......
...@@ -80,7 +80,6 @@ exports.betterTypeOf = betterTypeOf; ...@@ -80,7 +80,6 @@ exports.betterTypeOf = betterTypeOf;
80 */ 80 */
81 function betterInstanceOf(input, constructor) { 81 function betterInstanceOf(input, constructor) {
82 "use strict"; 82 "use strict";
83 /*global XMLDocument */
84 /*jshint eqnull:true, eqeqeq:false */ 83 /*jshint eqnull:true, eqeqeq:false */
85 while (input != null) { 84 while (input != null) {
86 if (input == constructor.prototype) { 85 if (input == constructor.prototype) {
......