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> | 4 <script> |
5 function test() | 5 function test() |
6 { | 6 { |
7 WebInspector.showPanel("scripts"); | 7 WebInspector.showPanel("sources"); |
8 | 8 |
9 function createContentProvider(url) | 9 function createContentProvider(url) |
10 { | 10 { |
11 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", "text/javascript"); | 11 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", "text/javascript"); |
12 contentProvider.requestContent = function(callback) | 12 contentProvider.requestContent = function(callback) |
13 { | 13 { |
14 InspectorTest.addResult("Source requested for " + url); | 14 InspectorTest.addResult("Source requested for " + url); |
15 callback(""); | 15 callback(""); |
16 }; | 16 }; |
17 return contentProvider; | 17 return contentProvider; |
(...skipping 20 matching lines...) Expand all Loading... |
38 dumpUISourceCodeDisplayName(baseURL + "long-filename?parameter=value&nnn=1")
; | 38 dumpUISourceCodeDisplayName(baseURL + "long-filename?parameter=value&nnn=1")
; |
39 dumpUISourceCodeDisplayName(baseURL + "too-long-filename-1234567890?paramete
r=value&nnn=1"); | 39 dumpUISourceCodeDisplayName(baseURL + "too-long-filename-1234567890?paramete
r=value&nnn=1"); |
40 InspectorTest.completeTest(); | 40 InspectorTest.completeTest(); |
41 }; | 41 }; |
42 </script> | 42 </script> |
43 </head> | 43 </head> |
44 <body onload="runTest()"> | 44 <body onload="runTest()"> |
45 <p>Tests UISourceCode display name.</p> | 45 <p>Tests UISourceCode display name.</p> |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |