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
81c22d71
...
81c22d71e70f547f3850f717bc1963888c1d3012
authored
2013-09-12 10:19:12 +0200
by
Mickaël Andrieu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Moved global XMLDocument annotation
From assertInstanceOf to test suite
1 parent
81648cdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
modules/tester.js
tests/suites/utils.js
modules/tester.js
View file @
81c22d7
...
...
@@ -849,7 +849,6 @@ 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.'
);
}
...
...
tests/suites/utils.js
View file @
81c22d7
...
...
@@ -25,6 +25,7 @@ casper.test.begin('utils.betterTypeOf() tests', 10, function(test) {
});
casper
.
test
.
begin
(
'utils.betterInstanceOf() tests'
,
13
,
function
(
test
)
{
/*global XMLDocument*/
// need two objects to test inheritance
function
Cow
(){}
var
daisy
=
new
Cow
();
function
SuperCow
(){}
SuperCow
.
prototype
=
new
Cow
();
var
superDaisy
=
new
SuperCow
();
...
...
Please
register
or
sign in
to post a comment