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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 20 matching lines...) Expand all
31 evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithInject edCodeLoaded); 31 evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithInject edCodeLoaded);
32 webInspector.inspectedWindow.reload({ 32 webInspector.inspectedWindow.reload({
33 injectedScript: "window.foo = 42;" 33 injectedScript: "window.foo = 42;"
34 }); 34 });
35 } 35 }
36 36
37 function initialize_testReloadInjectsCodeWithMessage() 37 function initialize_testReloadInjectsCodeWithMessage()
38 { 38 {
39 InspectorTest.lastMessageScriptId = function(callback) 39 InspectorTest.lastMessageScriptId = function(callback)
40 { 40 {
41 var consoleView = WebInspector.ConsoleView.instance(); 41 var consoleView = Console.ConsoleView.instance();
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) 49 if (!message.stackTrace)
50 callback(null); 50 callback(null);
51 callback(message.stackTrace.callFrames[0].scriptId); 51 callback(message.stackTrace.callFrames[0].scriptId);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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