Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-eval-throw.html

Issue 2146163002: [DevTools] Remove Console.messagesCleared event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2139543002
Patch Set: rebased on ToT Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
12 InspectorTest.consoleModel.addEventListener(WebInspector.ConsoleModel.Ev ents.ConsoleCleared, afterCleared);
11 InspectorTest.consoleModel.requestClearMessages(); 13 InspectorTest.consoleModel.requestClearMessages();
12
13 InspectorTest.consoleModel.addEventListener(WebInspector.ConsoleModel.Ev ents.ConsoleCleared, afterCleared);
14 14
15 function afterCleared() { 15 function afterCleared()
16 {
16 InspectorTest.consoleModel.removeEventListener(WebInspector.ConsoleM odel.Events.ConsoleCleared, afterCleared); 17 InspectorTest.consoleModel.removeEventListener(WebInspector.ConsoleM odel.Events.ConsoleCleared, afterCleared);
17 next(); 18 next();
18 } 19 }
19 } 20 }
20 21
21 InspectorTest.runTestSuite([ 22 InspectorTest.runTestSuite([
22 function testThrowUndefined(next) 23 function testThrowUndefined(next)
23 { 24 {
24 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind (null, next)); 25 InspectorTest.evaluateInConsole('throw undefined', dumpMessages.bind (null, next));
25 }, 26 },
(...skipping 21 matching lines...) Expand all
47 } 48 }
48 </script> 49 </script>
49 </head> 50 </head>
50 <body onload="runTest()"> 51 <body onload="runTest()">
51 <p> 52 <p>
52 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.
53 <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>
54 </p> 55 </p>
55 </body> 56 </body>
56 </html> 57 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698