3 <script src=
"../inspector/inspector-test.js"></script>
5 function throwException() {
14 function bar(callback
)
25 function handleLoaded()
27 if (window
.testRunner
)
28 testRunner
.waitUntilDone();
29 setTimeout(showInspectorAndRunTest
, 0);
34 function showInspectorAndRunTest()
36 if (window
.testRunner
)
37 testRunner
.showWebInspector();
43 if (InspectorTest
.consoleModel
.messages().length
!== 1)
44 InspectorTest
.addResult("FAIL: found too many console messages: " + InspectorTest
.consoleModel
.messages().length
);
46 var message
= InspectorTest
.consoleModel
.messages()[0];
47 var stack
= message
.stackTrace
;
49 InspectorTest
.addResult("FAIL: found message with stack trace");
51 InspectorTest
.addResult("SUCCESS: message doesn't have stack trace");
53 InspectorTest
.addResult("TEST COMPLETE.");
54 InspectorTest
.completeTest();
60 <body onload=
"handleLoaded()">
62 Tests that console will NOT contain stack trace for exception thrown when inspector front-end was closed.
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=109427">Bug
109427.
</a>