Committing a few tests that fail intentionally to test the buildbot error reporting, will disable these once the test is complete

This commit is contained in:
gavin@gavinsharp.com 2007-07-13 08:29:05 -07:00
parent b7d4207b3f
commit 6293b94ea6
7 changed files with 38 additions and 0 deletions

View File

@ -47,6 +47,12 @@ include $(topsrcdir)/config/rules.mk
_BROWSER_TEST_FILES = browser_pass.js \
browser_async.js \
browser_scope.js \
browser_fail.js \
browser_fail_async_throw.js \
browser_fail_fp.js \
browser_fail_pf.js \
browser_fail_throw.js \
browser_fail_timeout.js \
$(NULL)
libs:: $(_BROWSER_TEST_FILES)

View File

@ -0,0 +1,6 @@
function test() {
ok(false, "fail ok");
is(true, false, "fail is");
isnot(true, true, "fail isnot");
todo(true, "fail todo");
}

View File

@ -0,0 +1,7 @@
function test() {
function end() {
throw "thrown exception";
}
waitForExplicitFinish();
setTimeout(end, 1000);
}

View File

@ -0,0 +1,4 @@
function test() {
ok(false, "first fail ok");
ok(true, "then pass ok");
}

View File

@ -0,0 +1,4 @@
function test() {
ok(true, "first pass ok");
ok(false, "then fail ok");
}

View File

@ -0,0 +1,3 @@
function test() {
throw "thrown exception";
}

View File

@ -0,0 +1,8 @@
function test() {
function end() {
ok(true, "didn't time out?");
finish();
}
waitForExplicitFinish();
setTimeout(end, 20000);
}