Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
81648cdd
...
81648cddf3fcfb96a4772a91d278c014efa6cb58
authored
2013-09-12 10:12:08 +0200
by
Mickaël Andrieu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Moved global XMLDocument annotation
From modules\utils.js to modules\tester.js
1 parent
6777b15b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
modules/tester.js
modules/utils.js
modules/tester.js
View file @
81648cd
...
...
@@ -849,6 +849,7 @@ Tester.prototype.assertType = function assertType(subject, type, message) {
*/
Tester
.
prototype
.
assertInstanceOf
=
function
assertInstanceOf
(
subject
,
constructor
,
message
)
{
"use strict"
;
/*global XMLDocument */
if
(
utils
.
betterTypeOf
(
constructor
)
!==
"function"
)
{
throw
new
CasperError
(
'Subject is null or undefined.'
);
}
...
...
modules/utils.js
View file @
81648cd
...
...
@@ -80,7 +80,6 @@ exports.betterTypeOf = betterTypeOf;
*/
function
betterInstanceOf
(
input
,
constructor
)
{
"use strict"
;
/*global XMLDocument */
/*jshint eqnull:true, eqeqeq:false */
while
(
input
!=
null
)
{
if
(
input
==
constructor
.
prototype
)
{
...
...
Please
register
or
sign in
to post a comment