| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector/inspector-test.js"></script> | 3 <script src="../inspector/inspector-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 function throwException() { | 5 function throwException() { |
| 6 throw 2013; | 6 throw 2013; |
| 7 } | 7 } |
| 8 | 8 |
| 9 function baz() | 9 function baz() |
| 10 { | 10 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 function showInspectorAndRunTest() | 34 function showInspectorAndRunTest() |
| 35 { | 35 { |
| 36 if (window.testRunner) | 36 if (window.testRunner) |
| 37 testRunner.showWebInspector(); | 37 testRunner.showWebInspector(); |
| 38 runTest(); | 38 runTest(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 function test() | 41 function test() |
| 42 { | 42 { |
| 43 if (WebInspector.consoleModel.messages().length !== 1) | 43 if (InspectorTest.consoleModel.messages().length !== 1) |
| 44 InspectorTest.addResult("FAIL: found too many console messages: " + WebI
nspector.consoleModel.messages().length); | 44 InspectorTest.addResult("FAIL: found too many console messages: " + Insp
ectorTest.consoleModel.messages().length); |
| 45 | 45 |
| 46 var message = WebInspector.consoleModel.messages()[0]; | 46 var message = InspectorTest.consoleModel.messages()[0]; |
| 47 var stack = message.stackTrace; | 47 var stack = message.stackTrace; |
| 48 if (stack) | 48 if (stack) |
| 49 InspectorTest.addResult("FAIL: found message with stack trace"); | 49 InspectorTest.addResult("FAIL: found message with stack trace"); |
| 50 else | 50 else |
| 51 InspectorTest.addResult("SUCCESS: message doesn't have stack trace"); | 51 InspectorTest.addResult("SUCCESS: message doesn't have stack trace"); |
| 52 | 52 |
| 53 InspectorTest.addResult("TEST COMPLETE."); | 53 InspectorTest.addResult("TEST COMPLETE."); |
| 54 InspectorTest.completeTest(); | 54 InspectorTest.completeTest(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 </script> | 57 </script> |
| 58 | 58 |
| 59 </head> | 59 </head> |
| 60 <body onload="handleLoaded()"> | 60 <body onload="handleLoaded()"> |
| 61 <p> | 61 <p> |
| 62 Tests that console will NOT contain stack trace for exception thrown when inspec
tor front-end was closed. <a href="https://bugs.webkit.org/show_bug.cgi?id=10942
7">Bug 109427.</a> | 62 Tests that console will NOT contain stack trace for exception thrown when inspec
tor front-end was closed. <a href="https://bugs.webkit.org/show_bug.cgi?id=10942
7">Bug 109427.</a> |
| 63 </p> | 63 </p> |
| 64 </body> | 64 </body> |
| 65 </html> | 65 </html> |
| OLD | NEW |