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

Side by Side Diff: LayoutTests/inspector/initial-modules-load.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> 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 {
(...skipping 11 matching lines...) Expand all
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 WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpL oadedModules.bind(InspectorTest, next));
27 }, 27 },
28 28
29 function testOpenUISourceCode(next) 29 function testOpenUISourceCode(next)
30 { 30 {
31 var resource; 31 var resource;
32 WebInspector.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.uiSourceCodeForOriginURL(res ource.url).uiLocation(2, 1); 38 var uiLocation = WebInspector.workspace.uiSourceCodeForOriginURL(res ource.url).uiLocation(2, 1);
39 WebInspector.Revealer.reveal(uiLocation); 39 WebInspector.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
« no previous file with comments | « LayoutTests/inspector/extensions/extensions-events.html ('k') | LayoutTests/inspector/load-file-resource-for-frontend.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698