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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/initial-modules-load.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> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 InspectorTest.runTestSuite([ 8 InspectorTest.runTestSuite([
9 function testInitialLoad(next) 9 function testInitialLoad(next)
10 { 10 {
11 InspectorTest.dumpLoadedModules(next); 11 InspectorTest.dumpLoadedModules(next);
12 }, 12 },
13 13
14 function testCreateElementsPanel(next) 14 function testCreateElementsPanel(next)
15 { 15 {
16 WebInspector.inspectorView.panel("elements").then(InspectorTest.dump LoadedModules.bind(InspectorTest, self.runtime.loadModulePromise("animation").th en(next))); 16 UI.inspectorView.panel("elements").then(InspectorTest.dumpLoadedModu les.bind(InspectorTest, self.runtime.loadModulePromise("animation").then(next))) ;
17 }, 17 },
18 18
19 function testCreateNetworkPanel(next) 19 function testCreateNetworkPanel(next)
20 { 20 {
21 WebInspector.inspectorView.panel("network").then(InspectorTest.dumpL oadedModules.bind(InspectorTest, next)); 21 UI.inspectorView.panel("network").then(InspectorTest.dumpLoadedModul es.bind(InspectorTest, next));
22 }, 22 },
23 23
24 function testShowSourcesPanel(next) 24 function testShowSourcesPanel(next)
25 { 25 {
26 WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpL oadedModules.bind(InspectorTest, next)); 26 UI.inspectorView.panel("sources").then(InspectorTest.dumpLoadedModul es.bind(InspectorTest, next));
27 }, 27 },
28 28
29 function testOpenUISourceCode(next) 29 function testOpenUISourceCode(next)
30 { 30 {
31 var resource; 31 var resource;
32 InspectorTest.resourceTreeModel.forAllResources(function(r) { 32 InspectorTest.resourceTreeModel.forAllResources(function(r) {
33 if (r.url.indexOf("inspector-test.js") !== -1) { 33 if (r.url.indexOf("inspector-test.js") !== -1) {
34 resource = r; 34 resource = r;
35 return true; 35 return true;
36 } 36 }
37 }); 37 });
38 var uiLocation = WebInspector.workspace.uiSourceCodeForURL(resource. url).uiLocation(2, 1); 38 var uiLocation = Workspace.workspace.uiSourceCodeForURL(resource.url ).uiLocation(2, 1);
39 WebInspector.Revealer.reveal(uiLocation); 39 Common.Revealer.reveal(uiLocation);
40 InspectorTest.dumpLoadedModules(next); 40 InspectorTest.dumpLoadedModules(next);
41 } 41 }
42 ]); 42 ]);
43 } 43 }
44 44
45 </script> 45 </script>
46 </head> 46 </head>
47 47
48 <body onload="runTest()"> 48 <body onload="runTest()">
49 <p>This test validates initial set of loaded modules.</p> 49 <p>This test validates initial set of loaded modules.</p>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698