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

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

Issue 1954423002: DevTools: introduce CSSStyleSheetHeader.originalContentProvider() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-network-project
Patch Set: address comments Created 4 years, 7 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script> 5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var uiSourceCodes = []; 9 var uiSourceCodes = [];
10 function addUISourceCode(url) 10 function addUISourceCode(url)
11 { 11 {
12 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto r.resourceTypes.Script, "", url); 12 var contentProvider = new WebInspector.StaticContentProvider(url, WebIns pector.resourceTypes.Script, Promise.resolve(""));
13 var uiSourceCode = WebInspector.NetworkProject.forTarget(InspectorTest.m ainTarget).addFile(contentProvider, InspectorTest.mainFrame(), false); 13 var uiSourceCode = WebInspector.NetworkProject.forTarget(InspectorTest.m ainTarget).addFile(contentProvider, InspectorTest.mainFrame(), false);
14 uiSourceCodes.push(uiSourceCode); 14 uiSourceCodes.push(uiSourceCode);
15 } 15 }
16 16
17 var files = [ 17 var files = [
18 "foo.css", 18 "foo.css",
19 "foo.js", 19 "foo.js",
20 "foo.js.map", 20 "foo.js.map",
21 "foo.ts", 21 "foo.ts",
22 22
(...skipping 28 matching lines...) Expand all
51 InspectorTest.addResult("Next file for " + uiSourceCode.url() + " is " + nextURI + "."); 51 InspectorTest.addResult("Next file for " + uiSourceCode.url() + " is " + nextURI + ".");
52 } 52 }
53 InspectorTest.completeTest(); 53 InspectorTest.completeTest();
54 } 54 }
55 </script> 55 </script>
56 </head> 56 </head>
57 <body onload="runTest()"> 57 <body onload="runTest()">
58 <p>Tests how switch to next file with the same name and different extension feat ure works.</p> 58 <p>Tests how switch to next file with the same name and different extension feat ure works.</p>
59 </body> 59 </body>
60 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698