| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 function dumpMessages(next, message) | 8 function dumpMessages(next, message) |
| 9 { | 9 { |
| 10 InspectorTest.dumpConsoleMessages(); | 10 InspectorTest.dumpConsoleMessages(); |
| 11 WebInspector.consoleModel.requestClearMessages(); | 11 InspectorTest.consoleModel.requestClearMessages(); |
| 12 | 12 |
| 13 WebInspector.consoleModel.addEventListener(WebInspector.ConsoleModel.Eve
nts.ConsoleCleared, afterCleared); | 13 InspectorTest.consoleModel.addEventListener(WebInspector.ConsoleModel.Ev
ents.ConsoleCleared, afterCleared); |
| 14 | 14 |
| 15 function afterCleared() { | 15 function afterCleared() { |
| 16 WebInspector.consoleModel.removeEventListener(WebInspector.ConsoleMo
del.Events.ConsoleCleared, afterCleared); | 16 InspectorTest.consoleModel.removeEventListener(WebInspector.ConsoleM
odel.Events.ConsoleCleared, afterCleared); |
| 17 next(); | 17 next(); |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 InspectorTest.runTestSuite([ | 21 InspectorTest.runTestSuite([ |
| 22 function testThrowUndefined(next) | 22 function testThrowUndefined(next) |
| 23 { | 23 { |
| 24 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind
(null, next)); | 24 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind
(null, next)); |
| 25 }, | 25 }, |
| 26 | 26 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 <body onload="runTest()"> | 50 <body onload="runTest()"> |
| 51 <p> | 51 <p> |
| 52 Tests that evaluating 'throw undefined|1|string|object|Error' in the console won
't crash the browser and correctly reported. | 52 Tests that evaluating 'throw undefined|1|string|object|Error' in the console won
't crash the browser and correctly reported. |
| 53 <a href="https://bugs.webkit.org/show_bug.cgi?id=59611">Bug 59611.</a> | 53 <a href="https://bugs.webkit.org/show_bug.cgi?id=59611">Bug 59611.</a> |
| 54 </p> | 54 </p> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |