Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / initial-modules-load.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 function test()
7 {
8     InspectorTest.runTestSuite([
9         function testInitialLoad(next)
10         {
11             InspectorTest.dumpLoadedModules(next);
12         },
13
14         function testCreateElementsPanel(next)
15         {
16             WebInspector.panel("elements");
17             InspectorTest.dumpLoadedModules(next);
18         },
19
20         function testCreateNetworkPanel(next)
21         {
22             WebInspector.panel("network");
23             InspectorTest.dumpLoadedModules(next);
24         },
25
26         function testShowSourcesPanel(next)
27         {
28             WebInspector.showPanel("sources");
29             InspectorTest.dumpLoadedModules(next);
30         },
31
32         function testOpenUISourceCode(next)
33         {
34             var resource;
35             WebInspector.resourceTreeModel.forAllResources(function(r) {
36                 if (r.url.indexOf("inspector-test.js") !== -1) {
37                     resource = r;
38                     return true;
39                 }
40             });
41             var uiLocation = new WebInspector.UILocation(WebInspector.workspace.uiSourceCodeForOriginURL(resource.url), 2, 1);
42             WebInspector.Revealer.reveal(uiLocation);
43             InspectorTest.dumpLoadedModules(next);
44         }
45     ]);
46 }
47
48 </script>
49 </head>
50
51 <body onload="runTest()">
52 <p>This test validates initial set of loaded modules.</p>
53 </body>
54 </html>