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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/extensions/extensions-reload.html

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 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
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/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../http/tests/inspector/extensions-test.js"></script> 5 <script src="../../http/tests/inspector/extensions-test.js"></script>
6 <script src="../../http/tests/inspector/console-test.js"></script> 6 <script src="../../http/tests/inspector/console-test.js"></script>
7 <script type="text/javascript"> 7 <script type="text/javascript">
8 8
9 window.bar = "foo = " + window.foo; 9 window.bar = "foo = " + window.foo;
10 10
(...skipping 28 matching lines...) Expand all
39 InspectorTest.lastMessageScriptId = function(callback) 39 InspectorTest.lastMessageScriptId = function(callback)
40 { 40 {
41 var consoleView = WebInspector.ConsolePanel._view(); 41 var consoleView = WebInspector.ConsolePanel._view();
42 if (consoleView._needsFullUpdate) 42 if (consoleView._needsFullUpdate)
43 consoleView._updateMessageList(); 43 consoleView._updateMessageList();
44 var viewMessages = consoleView._visibleViewMessages; 44 var viewMessages = consoleView._visibleViewMessages;
45 if (viewMessages.length !== 1) 45 if (viewMessages.length !== 1)
46 callback(null); 46 callback(null);
47 var uiMessage = viewMessages[viewMessages.length - 1]; 47 var uiMessage = viewMessages[viewMessages.length - 1];
48 var message = uiMessage.consoleMessage(); 48 var message = uiMessage.consoleMessage();
49 if (message.stackTrace.length < 1) 49 if (!message.stackTrace)
50 callback(null); 50 callback(null);
51 callback(message.stackTrace[0].scriptId); 51 callback(message.stackTrace.callFrames[0].scriptId);
52 } 52 }
53 InspectorTest.getScriptSource = function(scriptId, callback) 53 InspectorTest.getScriptSource = function(scriptId, callback)
54 { 54 {
55 InspectorTest.DebuggerAgent.getScriptSource(scriptId, didGetScriptSource ); 55 InspectorTest.DebuggerAgent.getScriptSource(scriptId, didGetScriptSource );
56 function didGetScriptSource(error, source) 56 function didGetScriptSource(error, source)
57 { 57 {
58 callback(error ? "" : source); 58 callback(error ? "" : source);
59 } 59 }
60 } 60 }
61 } 61 }
(...skipping 26 matching lines...) Expand all
88 injectedScript: "console.log(42)" 88 injectedScript: "console.log(42)"
89 }); 89 });
90 } 90 }
91 91
92 </script> 92 </script>
93 </head> 93 </head>
94 <body onload="runTest()"> 94 <body onload="runTest()">
95 <p>Tests that webInspector.inspectedWindow.reload() successfully injects and pre processes user's code upon reload</p> 95 <p>Tests that webInspector.inspectedWindow.reload() successfully injects and pre processes user's code upon reload</p>
96 </body> 96 </body>
97 </html> 97 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698