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
3428e039
...
3428e0392f20f1a935809c7f0027f7e7b2948a95
authored
2013-11-20 19:51:30 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #546 - documented fallback strategies for getPasses/getFailures
1 parent
49c0d452
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
docs/modules/tester.rst
docs/modules/tester.rst
View file @
3428e03
...
...
@@ -522,12 +522,12 @@ Asserts that the provided input is of the given type::
.. versionadded:: 1.1
Asserts that the provided input is of the given constructor::
function Cow() {
this.moo = function moo() {
return 'moo!';
};
}
}
casper.test.begin('assertInstanceOf() tests', 2, function suite(test) {
var daisy = new Cow();
test.assertInstanceOf(daisy, Cow, "Ok, daisy is a cow.");
...
...
@@ -783,6 +783,10 @@ That will give something like this:
In c.js:0
assertEquals: Subject equals the expected value
.. note::
In CasperJS 1.1, you can retrieve test failure records by simply accessing `tester.currentSuite.failures`.
``getPasses()``
-------------------------------------------------------------------------------
...
...
@@ -790,6 +794,8 @@ That will give something like this:
.. versionadded:: 1.0
.. deprecated:: 1.1
Retrieves a report for successful test cases in the current test suite::
casper.test.assertEquals(true, true);
...
...
@@ -818,6 +824,10 @@ That will give something like this::
}
PASS 1 tests executed, 1 passed, 0 failed.
.. note::
In CasperJS 1.1, you can retrieve test success records by simply accessing `tester.currentSuite.passes`.
``info()``
-------------------------------------------------------------------------------
...
...
Please
register
or
sign in
to post a comment