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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/console-exception-while-no-inspector.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
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/console-log-before-frame-navigation.html » ('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="../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
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/console-log-before-frame-navigation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698