Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: LayoutTests/http/tests/inspector/resources-test.js

Issue 10911336: Merge 127902 - Web Inspector: [REGRESSION] Content is not available for dynamically loaded script s… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698