mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
b7d4207b3f
commit
6293b94ea6
@ -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
testing/mochitest/tests/browser/browser_fail.js
Normal file
6
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);
|
||||
}
|
4
testing/mochitest/tests/browser/browser_fail_fp.js
Normal file
4
testing/mochitest/tests/browser/browser_fail_fp.js
Normal file
@ -0,0 +1,4 @@
|
||||
function test() {
|
||||
ok(false, "first fail ok");
|
||||
ok(true, "then pass ok");
|
||||
}
|
4
testing/mochitest/tests/browser/browser_fail_pf.js
Normal file
4
testing/mochitest/tests/browser/browser_fail_pf.js
Normal file
@ -0,0 +1,4 @@
|
||||
function test() {
|
||||
ok(true, "first pass ok");
|
||||
ok(false, "then fail ok");
|
||||
}
|
3
testing/mochitest/tests/browser/browser_fail_throw.js
Normal file
3
testing/mochitest/tests/browser/browser_fail_throw.js
Normal file
@ -0,0 +1,3 @@
|
||||
function test() {
|
||||
throw "thrown exception";
|
||||
}
|
8
testing/mochitest/tests/browser/browser_fail_timeout.js
Normal file
8
testing/mochitest/tests/browser/browser_fail_timeout.js
Normal file
@ -0,0 +1,8 @@
|
||||
function test() {
|
||||
function end() {
|
||||
ok(true, "didn't time out?");
|
||||
finish();
|
||||
}
|
||||
waitForExplicitFinish();
|
||||
setTimeout(end, 20000);
|
||||
}
|
Loading…
Reference in New Issue
Block a user