Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="UTF-8">
5 <title>Test for empty stack in console</title>
6 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
8 </head>
9 <body>
10 <script type="application/javascript">
11 SimpleTest.waitForExplicitFinish();
13 window.setTimeout(console.log.bind(console), 0, "xyz");
15 window.addEventListener("fake", console.log.bind(console, "xyz"));
17 window.addEventListener("fake", function() {
18 ok(true, "Still alive");
19 SimpleTest.finish();
20 });
22 window.dispatchEvent(new Event("fake"));
23 </script>
24 </pre>
25 </body>
26 </html>