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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
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 20 matching lines...) Expand all
31 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiLocation. uiSourceCode); 31 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiLocation. uiSourceCode);
32 if (networkURL.indexOf(".scss") === -1) 32 if (networkURL.indexOf(".scss") === -1)
33 return; 33 return;
34 finalMappedLocation = networkURL + ":" + uiLocation.lineNumber + ":" + u iLocation.columnNumber; 34 finalMappedLocation = networkURL + ":" + uiLocation.lineNumber + ":" + u iLocation.columnNumber;
35 join(); 35 join();
36 } 36 }
37 37
38 38
39 function createMockStyleSheetHeader(url, sourceMapURL) 39 function createMockStyleSheetHeader(url, sourceMapURL)
40 { 40 {
41 const frame = WebInspector.resourceTreeModel.mainFrame; 41 const frame = InspectorTest.resourceTreeModel.mainFrame;
42 return { 42 return {
43 styleSheetId: styleSheetId, 43 styleSheetId: styleSheetId,
44 frameId: frame.id, 44 frameId: frame.id,
45 sourceURL: url, 45 sourceURL: url,
46 sourceMapURL: sourceMapURL, 46 sourceMapURL: sourceMapURL,
47 origin: "regular", 47 origin: "regular",
48 title: "", 48 title: "",
49 disabled: false 49 disabled: false
50 }; 50 };
51 } 51 }
52 52
53 function createMockStyleSheetResource(url, mimeType, content) 53 function createMockStyleSheetResource(url, mimeType, content)
54 { 54 {
55 const documentURL = "http://localhost:8000/inspector/stylesheet-source-m apping.html"; 55 const documentURL = "http://localhost:8000/inspector/stylesheet-source-m apping.html";
56 const frame = WebInspector.resourceTreeModel.mainFrame; 56 const frame = InspectorTest.resourceTreeModel.mainFrame;
57 var resource = new WebInspector.Resource(WebInspector.resourceTreeModel. target(), null, url, documentURL, frame.id, frame.loaderId, WebInspector.resourc eTypes.Stylesheet, mimeType); 57 var resource = new WebInspector.Resource(InspectorTest.resourceTreeModel .target(), null, url, documentURL, frame.id, frame.loaderId, WebInspector.resour ceTypes.Stylesheet, mimeType);
58 resource.requestContent = function(callback) 58 resource.requestContent = function(callback)
59 { 59 {
60 callback(content, false, mimeType); 60 callback(content, false, mimeType);
61 } 61 }
62 return resource; 62 return resource;
63 } 63 }
64 64
65 65
66 function cssUISourceCodeAdded(uiSourceCode) 66 function cssUISourceCodeAdded(uiSourceCode)
67 { 67 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 </script> 116 </script>
117 117
118 </head> 118 </head>
119 119
120 <body onload="runTest()"> 120 <body onload="runTest()">
121 <p>Tests SourceMap and StyleSheetMapping.</p> 121 <p>Tests SourceMap and StyleSheetMapping.</p>
122 </body> 122 </body>
123 </html> 123 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698