| OLD | NEW |
| 1 var initialize_ResourceTest = function() { | 1 var initialize_ResourceTest = function() { |
| 2 | 2 |
| 3 InspectorTest.preloadPanel("sources"); | 3 InspectorTest.preloadPanel("sources"); |
| 4 InspectorTest.preloadPanel("resources"); | 4 InspectorTest.preloadPanel("resources"); |
| 5 | 5 |
| 6 InspectorTest.requestURLComparer = function(r1, r2) | 6 InspectorTest.requestURLComparer = function(r1, r2) |
| 7 { | 7 { |
| 8 return r1.request.url.localeCompare(r2.request.url); | 8 return r1.request.url.localeCompare(r2.request.url); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 function showResourceCallback() | 51 function showResourceCallback() |
| 52 { | 52 { |
| 53 var resource = InspectorTest.resourceMatchingURL(resourceURL); | 53 var resource = InspectorTest.resourceMatchingURL(resourceURL); |
| 54 if (!resource) | 54 if (!resource) |
| 55 return; | 55 return; |
| 56 WebInspector.panels.resources.showResource(resource, 1); | 56 WebInspector.panels.resources.showResource(resource, 1); |
| 57 var sourceFrame = WebInspector.panels.resources._resourceViewForResource
(resource); | 57 var sourceFrame = WebInspector.panels.resources._resourceViewForResource
(resource); |
| 58 if (sourceFrame.loaded) | 58 if (sourceFrame.loaded) |
| 59 callbackWrapper(sourceFrame); | 59 callbackWrapper(sourceFrame); |
| 60 else | 60 else |
| 61 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentLoaded", c
allbackWrapper.bind(null, sourceFrame)); | 61 InspectorTest.addSniffer(sourceFrame, "onTextEditorContentSet", call
backWrapper.bind(null, sourceFrame)); |
| 62 } | 62 } |
| 63 InspectorTest.runAfterResourcesAreFinished([resourceURL], showResourceCallba
ck); | 63 InspectorTest.runAfterResourcesAreFinished([resourceURL], showResourceCallba
ck); |
| 64 } | 64 } |
| 65 | 65 |
| 66 InspectorTest.resourceMatchingURL = function(resourceURL) | 66 InspectorTest.resourceMatchingURL = function(resourceURL) |
| 67 { | 67 { |
| 68 var result = null; | 68 var result = null; |
| 69 InspectorTest.resourceTreeModel.forAllResources(visit); | 69 InspectorTest.resourceTreeModel.forAllResources(visit); |
| 70 function visit(resource) | 70 function visit(resource) |
| 71 { | 71 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 86 { | 86 { |
| 87 return WebInspector.DOMStorageModel.fromTarget(InspectorTest.mainTarget); | 87 return WebInspector.DOMStorageModel.fromTarget(InspectorTest.mainTarget); |
| 88 } | 88 } |
| 89 | 89 |
| 90 InspectorTest.indexedDBModel = function() | 90 InspectorTest.indexedDBModel = function() |
| 91 { | 91 { |
| 92 return WebInspector.IndexedDBModel.fromTarget(InspectorTest.mainTarget); | 92 return WebInspector.IndexedDBModel.fromTarget(InspectorTest.mainTarget); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } | 95 } |
| OLD | NEW |