Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(558)

Side by Side Diff: LayoutTests/inspector/sources/debugger/switch-file.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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()
8 {
9 var uiSourceCodes = [];
10 function addUISourceCode(url)
11 {
12 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto r.resourceTypes.Script, "");
13 var uiSourceCode = WebInspector.NetworkProject.forTarget(InspectorTest.m ainTarget).addFileForURL(url, contentProvider, false);
14 uiSourceCodes.push(uiSourceCode);
15 }
16
17 var files = [
18 "foo.css",
19 "foo.js",
20 "foo.js.map",
21 "foo.ts",
22
23 "bar.css",
24 "bar.js",
25 "bar.js.map",
26 "bar.ts",
27
28 "baz.css",
29 "baz2",
30
31 "foo/foo.css",
32 "foo/foo.js",
33 "foo/foo.js.map",
34 "foo/foo.ts",
35 "foo/foo",
36
37 "bar/foo.css",
38 "bar/foo.js",
39 "bar/foo.js.map",
40 "bar/foo.ts",
41 "bar/foo" ];
42
43 for (var i = 0; i < files.length; ++i)
44 addUISourceCode("http://example.com/" + files[i]);
45
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 + ".");
52 }
53 InspectorTest.completeTest();
54 }
55 </script>
56 </head>
57 <body onload="runTest()">
58 <p>Tests how switch to next file with the same name and different extension feat ure works.</p>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698