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

Side by Side Diff: LayoutTests/http/tests/inspector/stylesheet-source-mapping.html

Issue 356033002: DevTools: Get rid of WebInspector.debuggerModel in NetworkUISourceCodeProvider (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address vsevik's comments Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/network-uisourcecode-provider.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="debugger-test.js"></script> 4 <script src="debugger-test.js"></script>
5 <script src="workspace-test.js"></script> 5 <script src="workspace-test.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 origin: "regular", 44 origin: "regular",
45 title: "", 45 title: "",
46 disabled: false 46 disabled: false
47 }; 47 };
48 } 48 }
49 49
50 function createMockStyleSheetResource(url, mimeType, content) 50 function createMockStyleSheetResource(url, mimeType, content)
51 { 51 {
52 const documentURL = "http://localhost:8000/inspector/stylesheet-source-m apping.html"; 52 const documentURL = "http://localhost:8000/inspector/stylesheet-source-m apping.html";
53 const frame = WebInspector.resourceTreeModel.mainFrame; 53 const frame = WebInspector.resourceTreeModel.mainFrame;
54 var resource = new WebInspector.Resource(null, url, documentURL, frame.i d, frame.loaderId, WebInspector.resourceTypes.Stylesheet, mimeType); 54 var resource = new WebInspector.Resource(WebInspector.resourceTreeModel. target(), null, url, documentURL, frame.id, frame.loaderId, WebInspector.resourc eTypes.Stylesheet, mimeType);
55 resource.requestContent = function(callback) 55 resource.requestContent = function(callback)
56 { 56 {
57 callback(content, false, mimeType); 57 callback(content, false, mimeType);
58 } 58 }
59 return resource; 59 return resource;
60 } 60 }
61 61
62 62
63 function cssUISourceCodeAdded(uiSourceCode) 63 function cssUISourceCodeAdded(uiSourceCode)
64 { 64 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 </script> 113 </script>
114 114
115 </head> 115 </head>
116 116
117 <body onload="runTest()"> 117 <body onload="runTest()">
118 <p>Tests SourceMap and StyleSheetMapping.</p> 118 <p>Tests SourceMap and StyleSheetMapping.</p>
119 </body> 119 </body>
120 </html> 120 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/network-uisourcecode-provider.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698