Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js |
| index ddceabd0491995f1661e131d5fe5ee2b2cce30bd..5708022097979688fac19effc4ab8428d5df54e4 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js |
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js |
| @@ -16,9 +16,12 @@ WebInspector.PersistenceBinding.prototype.toString = function() |
| InspectorTest.waitForBinding = function(fileName) |
| { |
| - var bindings = WebInspector.persistence._bindings.valuesArray(); |
| - for (var binding of bindings) { |
| - if (binding.network.name() === fileName || binding.fileSystem.name() === fileName) |
| + var uiSourceCodes = WebInspector.workspace.uiSourceCodes(); |
| + for (uiSourceCode of WebInspector.workspace.uiSourceCodes()) { |
|
dgozman
2016/10/05 02:25:24
for (var uiSourceCode of uiSourceCodes)
lushnikov
2016/10/05 03:55:25
Done.
|
| + var binding = WebInspector.persistence.binding(uiSourceCode); |
| + if (!binding) |
| + continue; |
| + if (uiSourceCode.name() === fileName) |
| return Promise.resolve(binding); |
| } |
| var fulfill; |