OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |