3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
5 <script src=
"../../../http/tests/inspector/workspace-test.js"></script>
9 var uiSourceCodes
= [];
10 function addUISourceCode(url
)
12 var contentProvider
= new WebInspector
.StaticContentProvider(WebInspector
.resourceTypes
.Script
, "");
13 var uiSourceCode
= WebInspector
.NetworkProject
.forTarget(InspectorTest
.mainTarget
).addFileForURL(url
, contentProvider
, false);
14 uiSourceCodes
.push(uiSourceCode
);
43 for (var i
= 0; i
< files
.length
; ++i
)
44 addUISourceCode("http://example.com/" + files
[i
]);
46 InspectorTest
.addResult("Dumping next file for each file:");
47 for (var i
= 0; i
< uiSourceCodes
.length
; ++i
) {
48 var uiSourceCode
= uiSourceCodes
[i
];
49 var nextUISourceCode
= WebInspector
.SourcesView
.SwitchFileActionDelegate
._nextFile(uiSourceCode
);
50 var nextURI
= nextUISourceCode
? nextUISourceCode
.uri() : "<none>";
51 InspectorTest
.addResult("Next file for " + uiSourceCode
.uri() + " is " + nextURI
+ ".");
53 InspectorTest
.completeTest();
57 <body onload=
"runTest()">
58 <p>Tests how switch to next file with the same name and different extension feature works.
</p>