Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-ui / switch-file.html
blobe9f0e24fd10563237953f6e1f6ffd1514376d67f
1 <html>
2 <head>
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>
6 <script>
7 function test()
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);
17 var files = [
18 "foo.css",
19 "foo.js",
20 "foo.js.map",
21 "foo.ts",
23 "bar.css",
24 "bar.js",
25 "bar.js.map",
26 "bar.ts",
28 "baz.css",
29 "baz2",
31 "foo/foo.css",
32 "foo/foo.js",
33 "foo/foo.js.map",
34 "foo/foo.ts",
35 "foo/foo",
37 "bar/foo.css",
38 "bar/foo.js",
39 "bar/foo.js.map",
40 "bar/foo.ts",
41 "bar/foo" ];
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();
55 </script>
56 </head>
57 <body onload="runTest()">
58 <p>Tests how switch to next file with the same name and different extension feature works.</p>
59 </body>
60 </html>