Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / initial-modules-load.html
blob4ed9026688e24d3ad565b8f52dee9bb128253c23
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function test()
8 InspectorTest.runTestSuite([
9 function testInitialLoad(next)
11 InspectorTest.dumpLoadedModules(next);
14 function testCreateElementsPanel(next)
16 WebInspector.inspectorView.panel("elements").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, self.runtime.loadModulePromise("animation").then(next)));
19 function testCreateNetworkPanel(next)
21 WebInspector.inspectorView.panel("network").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, next));
24 function testShowSourcesPanel(next)
26 WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, next));
29 function testOpenUISourceCode(next)
31 var resource;
32 InspectorTest.resourceTreeModel.forAllResources(function(r) {
33 if (r.url.indexOf("inspector-test.js") !== -1) {
34 resource = r;
35 return true;
37 });
38 var uiLocation = WebInspector.workspace.uiSourceCodeForOriginURL(resource.url).uiLocation(2, 1);
39 WebInspector.Revealer.reveal(uiLocation);
40 InspectorTest.dumpLoadedModules(next);
42 ]);
45 </script>
46 </head>
48 <body onload="runTest()">
49 <p>This test validates initial set of loaded modules.</p>
50 </body>
51 </html>