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: LayoutTests/inspector/console/console-eval-throw.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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.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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/console/console-eval-scoped.html ('k') | LayoutTests/inspector/console/console-last-result.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698