Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 mockContentsMap = {}; | 9 var mockContentsMap = {}; |
| 10 var lastResourceId = 0; | 10 var lastResourceId = 0; |
| 11 | 11 |
| 12 var mockStyleSheetHeader = { | 12 var mockStyleSheetHeader = { |
| 13 styleSheetId: "1", | 13 styleSheetId: "1", |
| 14 sourceURL: "foo.css", | 14 sourceURL: "http://example.com/foo.css", |
|
vsevik
2014/10/17 13:42:55
Please test for both sourceURLs
lushnikov
2014/10/17 17:29:42
Done.
| |
| 15 sourceMapURL: "", | 15 sourceMapURL: "", |
| 16 origin: "regular", | 16 origin: "regular", |
| 17 title: "", | 17 title: "", |
| 18 disabled: false | 18 disabled: false |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 NetworkAgent.getResponseBody = function(requestId, callback) | 21 NetworkAgent.getResponseBody = function(requestId, callback) |
| 22 { | 22 { |
| 23 callback(undefined, mockContentsMap[requestId], false); | 23 callback(undefined, mockContentsMap[requestId], false); |
| 24 } | 24 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 } | 159 } |
| 160 } | 160 } |
| 161 ]); | 161 ]); |
| 162 }; | 162 }; |
| 163 </script> | 163 </script> |
| 164 </head> | 164 </head> |
| 165 <body onload="runTest()"> | 165 <body onload="runTest()"> |
| 166 <p>Tests NetworkUISourceCodeProvider class.</p> | 166 <p>Tests NetworkUISourceCodeProvider class.</p> |
| 167 </body> | 167 </body> |
| 168 </html> | 168 </html> |
| OLD | NEW |