зеркало из https://github.com/mozilla/gecko-dev.git
Bug 670831 - Enable some mochitest sanity tests for uncaught exception handling. r=jmaher
This commit is contained in:
Родитель
f24ad4ce1d
Коммит
6f7be3b9fd
|
@ -47,9 +47,8 @@ include $(topsrcdir)/config/rules.mk
|
|||
_STATIC_FILES = test_sample.xul \
|
||||
test_sanityChromeUtils.xul \
|
||||
test_sanityPluginUtils.html \
|
||||
# Disabled until bug 652494 is resolved.
|
||||
# test_sanityException.xul \
|
||||
# test_sanityException2.xul \
|
||||
test_sanityException.xul \
|
||||
test_sanityException2.xul \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_STATIC_FILES)
|
||||
|
|
|
@ -15,7 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=670817
|
|||
|
||||
SimpleTest.expectUncaughtException();
|
||||
ok(true, "a call to ok");
|
||||
throw "uncaught exception";
|
||||
throw "this is a deliberately thrown exception";
|
||||
|
||||
]]></script>
|
||||
</body>
|
||||
|
|
|
@ -17,7 +17,7 @@ SimpleTest.waitForExplicitFinish();
|
|||
ok(true, "a call to ok");
|
||||
SimpleTest.executeSoon(function() {
|
||||
SimpleTest.expectUncaughtException();
|
||||
throw "an uncaught exception";
|
||||
throw "this is a deliberately thrown exception";
|
||||
});
|
||||
SimpleTest.executeSoon(function() {
|
||||
SimpleTest.finish();
|
||||
|
|
|
@ -52,9 +52,8 @@ _BROWSER_TEST_FILES = \
|
|||
browser_privileges.js \
|
||||
browser_popupNode.js \
|
||||
browser_popupNode_check.js \
|
||||
# Disabled until bug 652494 is resolved.
|
||||
# browser_sanityException.js \
|
||||
# browser_sanityException2.js \
|
||||
browser_sanityException.js \
|
||||
browser_sanityException2.js \
|
||||
# Disabled, these are only good for testing the harness' failure reporting
|
||||
# browser_zz_fail_openwindow.js \
|
||||
# browser_fail.js \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
function test() {
|
||||
ok(true, "ok called");
|
||||
expectUncaughtException();
|
||||
throw "uncaught exception";
|
||||
throw "this is a deliberately thrown exception";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ function test() {
|
|||
ok(true, "ok called");
|
||||
executeSoon(function() {
|
||||
expectUncaughtException();
|
||||
throw "uncaught exception";
|
||||
throw "this is a deliberately thrown exception";
|
||||
});
|
||||
executeSoon(function() {
|
||||
finish();
|
||||
|
|
Загрузка…
Ссылка в новой задаче