| Edit | Back | pdf:writer| three column layout

QUnit

Setup:
test(name. test), Add a test to run
module(name. lifecycle), Separate tests into modules
Assertions:
ok(state.message), boolean assertion like assertTrue
equals(actual.expected.message), comparison like assertEquals
same(actual.expected.message), deep recursive comparison for primitives arrays and objects
expect(amount), specify how many assertions are expected to run within a test
Testing Ajax:
start(), start running tests again after the testrunner was stopped
stop(), Stop the testrunner to wait to sync tests to run. call start() to continue.

 | Edit | Back| pdf:writer| three column layout