Commit 3428e039 3428e0392f20f1a935809c7f0027f7e7b2948a95 by Nicolas Perriault

refs #546 - documented fallback strategies for getPasses/getFailures

1 parent 49c0d452
......@@ -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()``
-------------------------------------------------------------------------------
......