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.dumpConsoleMessagesIgnoreErrorStackFrames(); | 10 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); |
11 | 11 |
12 InspectorTest.consoleModel.addEventListener(SDK.ConsoleModel.Events.Cons
oleCleared, afterCleared); | 12 InspectorTest.consoleModel.addEventListener(ConsoleModel.ConsoleModel.Ev
ents.ConsoleCleared, afterCleared); |
13 Console.ConsoleView.clearConsole(); | 13 Console.ConsoleView.clearConsole(); |
14 | 14 |
15 function afterCleared() | 15 function afterCleared() |
16 { | 16 { |
17 InspectorTest.consoleModel.removeEventListener(SDK.ConsoleModel.Even
ts.ConsoleCleared, afterCleared); | 17 InspectorTest.consoleModel.removeEventListener(ConsoleModel.ConsoleM
odel.Events.ConsoleCleared, afterCleared); |
18 next(); | 18 next(); |
19 } | 19 } |
20 } | 20 } |
21 | 21 |
22 InspectorTest.runTestSuite([ | 22 InspectorTest.runTestSuite([ |
23 function testThrowUndefined(next) | 23 function testThrowUndefined(next) |
24 { | 24 { |
25 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind
(null, next)); | 25 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind
(null, next)); |
26 }, | 26 }, |
27 | 27 |
(...skipping 20 matching lines...) Expand all Loading... |
48 } | 48 } |
49 </script> | 49 </script> |
50 </head> | 50 </head> |
51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
52 <p> | 52 <p> |
53 Tests that evaluating 'throw undefined|1|string|object|Error' in the console won
't crash the browser and correctly reported. | 53 Tests that evaluating 'throw undefined|1|string|object|Error' in the console won
't crash the browser and correctly reported. |
54 <a href="https://bugs.webkit.org/show_bug.cgi?id=59611">Bug 59611.</a> | 54 <a href="https://bugs.webkit.org/show_bug.cgi?id=59611">Bug 59611.</a> |
55 </p> | 55 </p> |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |