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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-test.js

Issue 2398493002: DevTools: [Persistence] split out WI.DefaultMapping (Closed)
Patch Set: address comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5e84555760f3c3c8b62ffc5f810b7925e535cd25 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 (var uiSourceCode of uiSourceCodes) {
+ var binding = WebInspector.persistence.binding(uiSourceCode);
+ if (!binding)
+ continue;
+ if (uiSourceCode.name() === fileName)
return Promise.resolve(binding);
}
var fulfill;
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698