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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/appcache/appcache-test.js

Issue 1924153002: DevTools: reorder items in the resources panel sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 framesCount = 0; 1 var framesCount = 0;
2 2
3 function createAndNavigateIFrame(url) 3 function createAndNavigateIFrame(url)
4 { 4 {
5 var iframe = document.createElement("iframe"); 5 var iframe = document.createElement("iframe");
6 iframe.src = url; 6 iframe.src = url;
7 iframe.name = "frame" + ++framesCount; 7 iframe.name = "frame" + ++framesCount;
8 iframe.id = iframe.name; 8 iframe.id = iframe.name;
9 document.body.appendChild(iframe); 9 document.body.appendChild(iframe);
10 } 10 }
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 for (var i = 0; i < applicationCacheTreeElement.childCount(); ++i) { 89 for (var i = 0; i < applicationCacheTreeElement.childCount(); ++i) {
90 var manifestTreeElement = applicationCacheTreeElement.childAt(i); 90 var manifestTreeElement = applicationCacheTreeElement.childAt(i);
91 InspectorTest.addResult(" Manifest URL: " + manifestTreeElement.manif estURL); 91 InspectorTest.addResult(" Manifest URL: " + manifestTreeElement.manif estURL);
92 if (!manifestTreeElement.childCount()) { 92 if (!manifestTreeElement.childCount()) {
93 InspectorTest.addResult(" (no frames)"); 93 InspectorTest.addResult(" (no frames)");
94 continue; 94 continue;
95 } 95 }
96 for (var j = 0; j < manifestTreeElement.childCount(); ++j) { 96 for (var j = 0; j < manifestTreeElement.childCount(); ++j) {
97 var frameTreeElement = manifestTreeElement.childAt(j); 97 var frameTreeElement = manifestTreeElement.childAt(j);
98 InspectorTest.addResult(" Frame: " + frameTreeElement.display Name); 98 InspectorTest.addResult(" Frame: " + frameTreeElement.title);
99 } 99 }
100 } 100 }
101 } 101 }
102 102
103 InspectorTest.frameIdToString = function(frameId) 103 InspectorTest.frameIdToString = function(frameId)
104 { 104 {
105 if (!InspectorTest.framesByFrameId) 105 if (!InspectorTest.framesByFrameId)
106 InspectorTest.framesByFrameId = {}; 106 InspectorTest.framesByFrameId = {};
107 var frame = InspectorTest.resourceTreeModel.frameForId(frameId); 107 var frame = InspectorTest.resourceTreeModel.frameForId(frameId);
108 if (!frame) 108 if (!frame)
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return; 201 return;
202 } 202 }
203 203
204 if (!InspectorTest.awaitedFrameStatusEventsCount) 204 if (!InspectorTest.awaitedFrameStatusEventsCount)
205 InspectorTest.awaitedFrameStatusEventsCount = {}; 205 InspectorTest.awaitedFrameStatusEventsCount = {};
206 InspectorTest.awaitedFrameStatusEventsCount[frameId] = { count: eventsLeft, callback: callback }; 206 InspectorTest.awaitedFrameStatusEventsCount[frameId] = { count: eventsLeft, callback: callback };
207 } 207 }
208 208
209 }; 209 };
210 210
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698