3 <script src=
"../http/tests/inspector/inspector-test.js"></script>
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
)
32 InspectorTest
.resourceTreeModel
.forAllResources(function(r
) {
33 if (r
.url
.indexOf("inspector-test.js") !== -1) {
38 var uiLocation
= WebInspector
.workspace
.uiSourceCodeForOriginURL(resource
.url
).uiLocation(2, 1);
39 WebInspector
.Revealer
.reveal(uiLocation
);
40 InspectorTest
.dumpLoadedModules(next
);
48 <body onload=
"runTest()">
49 <p>This test validates initial set of loaded modules.
</p>