4 https://bugzilla.mozilla.org/show_bug.cgi?id=
8 <title>Test for Bug
</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
11 <script type=
"application/javascript">
14 SimpleTest.waitForExplicitFinish();
16 SimpleTest.expectUncaughtException();
17 setTimeout(function() {
18 SpecialPowers.Cu.getJSTestingFunctions().throwOutOfMemory();
21 addEventListener(
"error", function(e) {
22 is(e.type,
"error",
"Should have an error event");
23 is(e.message,
"uncaught exception: out of memory",
24 "Should have the right error message");
25 // Make sure we finish async, in case the expectUncaughtException assertion
26 // about having seen the exception runs after our listener
27 SimpleTest.executeSoon(SimpleTest.finish);
34 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=">Mozilla Bug
</a>
36 <div id=
"content" style=
"display: none">