| OLD | NEW |
| 1 var initialize_ResourceTest = function() { | 1 var initialize_ResourceTest = function() { |
| 2 | 2 |
| 3 InspectorTest.HARPropertyFormatters = { | 3 InspectorTest.HARPropertyFormatters = { |
| 4 bodySize: "formatAsTypeName", | 4 bodySize: "formatAsTypeName", |
| 5 compression: "formatAsTypeName", | 5 compression: "formatAsTypeName", |
| 6 headers: "formatAsTypeName", | 6 headers: "formatAsTypeName", |
| 7 headersSize: "formatAsTypeName", | 7 headersSize: "formatAsTypeName", |
| 8 id: "formatAsTypeName", | 8 id: "formatAsTypeName", |
| 9 onContentLoad: "formatAsTypeName", | 9 onContentLoad: "formatAsTypeName", |
| 10 onLoad: "formatAsTypeName", | 10 onLoad: "formatAsTypeName", |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 WebInspector.panels.resources.showResource(resource, 1); | 75 WebInspector.panels.resources.showResource(resource, 1); |
| 76 var sourceFrame = WebInspector.panels.resources._resourceViewForResource
(resource); | 76 var sourceFrame = WebInspector.panels.resources._resourceViewForResource
(resource); |
| 77 if (sourceFrame.loaded) | 77 if (sourceFrame.loaded) |
| 78 callbackWrapper(sourceFrame); | 78 callbackWrapper(sourceFrame); |
| 79 else | 79 else |
| 80 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentLoaded", c
allbackWrapper.bind(null, sourceFrame)); | 80 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentLoaded", c
allbackWrapper.bind(null, sourceFrame)); |
| 81 } | 81 } |
| 82 InspectorTest.runAfterResourcesAreFinished([resourceURL], showResourceCallba
ck); | 82 InspectorTest.runAfterResourcesAreFinished([resourceURL], showResourceCallba
ck); |
| 83 } | 83 } |
| 84 | 84 |
| 85 InspectorTest.resourceMatchingURL = function(resourceURL, callback) | 85 InspectorTest.resourceMatchingURL = function(resourceURL) |
| 86 { | 86 { |
| 87 var result = null; | 87 var result = null; |
| 88 WebInspector.resourceTreeModel.forAllResources(visit); | 88 WebInspector.resourceTreeModel.forAllResources(visit); |
| 89 function visit(resource) | 89 function visit(resource) |
| 90 { | 90 { |
| 91 if (resource.url.indexOf(resourceURL) !== -1) { | 91 if (resource.url.indexOf(resourceURL) !== -1) { |
| 92 result = resource; | 92 result = resource; |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 return result; | 96 return result; |
| 97 } | 97 } |
| 98 | 98 |
| 99 } | 99 } |
| OLD | NEW |