| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 if (resource.url.indexOf(resourceURL) !== -1) { | 72 if (resource.url.indexOf(resourceURL) !== -1) { |
| 73 result = resource; | 73 result = resource; |
| 74 return true; | 74 return true; |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 return result; | 77 return result; |
| 78 } | 78 } |
| 79 | 79 |
| 80 InspectorTest.databaseModel = function() | 80 InspectorTest.databaseModel = function() |
| 81 { | 81 { |
| 82 return Resources.DatabaseModel.fromTarget(InspectorTest.mainTarget); | 82 return InspectorTest.mainTarget.model(Resources.DatabaseModel); |
| 83 } | 83 } |
| 84 | 84 |
| 85 InspectorTest.domStorageModel = function() | 85 InspectorTest.domStorageModel = function() |
| 86 { | 86 { |
| 87 return Resources.DOMStorageModel.fromTarget(InspectorTest.mainTarget); | 87 return InspectorTest.mainTarget.model(Resources.DOMStorageModel); |
| 88 } | 88 } |
| 89 | 89 |
| 90 InspectorTest.indexedDBModel = function() | 90 InspectorTest.indexedDBModel = function() |
| 91 { | 91 { |
| 92 return Resources.IndexedDBModel.fromTarget(InspectorTest.mainTarget); | 92 return InspectorTest.mainTarget.model(Resources.IndexedDBModel); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } | 95 } |
| OLD | NEW |