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

Unified Diff: LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js

Issue 1131723005: Fixed Cache Storage inspector blank cells, updated tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed custom cell Created 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
diff --git a/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js b/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
index 56bec5959143807e3ba8460d18d9fa742f84f579..a65d4375af8e9e2839b229cf64cad3ac7247ca64 100644
--- a/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
+++ b/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
@@ -42,8 +42,16 @@ InspectorTest.dumpCacheTree = function()
nextOrResolve();
return;
}
- for (var entry of view._entries)
- InspectorTest.addResult(" '" + entry.request + "': '" + entry.response + "'");
+ var dataGrid = view._dataGrid;
+ for (var node of dataGrid.rootNode().children) {
+ var entries = [];
+ for (var j = 0; j < node.element().children.length; j++) {
+ var td = node.element().children[j];
+ if (td.textContent)
+ entries.push(td.textContent);
+ }
+ InspectorTest.addResult(" " + entries.join(", "));
+ }
nextOrResolve();
}

Powered by Google App Engine
This is Rietveld 408576698