Moved global XMLDocument annotation
From modules\utils.js to modules\tester.js
Showing
2 changed files
with
1 additions
and
1 deletions
... | @@ -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) { | ... | ... |
-
Please register or sign in to post a comment