Committing a few tests that fail intentionally to test the buildbot error reporting, will disable these once the test is complete
git-svn-id: svn://10.0.0.236/trunk@229897 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1c2e0b8bad
commit
2b7ffdcedd
@ -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)
|
||||
|
||||
6
mozilla/testing/mochitest/tests/browser/browser_fail.js
Normal file
6
mozilla/testing/mochitest/tests/browser/browser_fail.js
Normal 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");
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
function test() {
|
||||
function end() {
|
||||
throw "thrown exception";
|
||||
}
|
||||
waitForExplicitFinish();
|
||||
setTimeout(end, 1000);
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
function test() {
|
||||
ok(false, "first fail ok");
|
||||
ok(true, "then pass ok");
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
function test() {
|
||||
ok(true, "first pass ok");
|
||||
ok(false, "then fail ok");
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
function test() {
|
||||
throw "thrown exception";
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
function test() {
|
||||
function end() {
|
||||
ok(true, "didn't time out?");
|
||||
finish();
|
||||
}
|
||||
waitForExplicitFinish();
|
||||
setTimeout(end, 20000);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user