| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |