Displaying 1 result from an estimated 1 matches for "testblah".
Did you mean:
test_blah
2005 Aug 02
1
JavaScript unit testing
...Test.Unit.Runner({
setup: function() { with(this) {
// optional, do setup stuff
}},
teardown: function() { with(this) {
// optional, do teardown stuff
}},
// example test (all functions starting with ''test'' are
considered, well, tests)
testBlah: function() { with(this) {
// do something ...
assertEqual(expected, actual, "optional message");
// see unittest.js for more asserts
// do more, assert more...
waitForAjax(function() { // helper for ajax calls
(because they''re a...