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

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

Issue 2928833002: [CacheStorage] [DevTools] Added "Time Received" column to cache storage data grid (Closed)
Patch Set: Removed Time.h changes Created 3 years, 6 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: third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
index d3e9354170efb8c9caead69491ae320ae5038008..14e1e6e52b5aa0eb25fb90df4643d88822575c9c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/cache-storage/cache-storage-test.js
@@ -39,7 +39,11 @@ InspectorTest.dumpCacheTree = async function()
}
var dataGrid = view._dataGrid;
for (var node of dataGrid.rootNode().children) {
- var entries = Array.from(node.element().children, td => td.textContent).filter(text => text);
+ var children = Array.from(node.element().children).filter(function (element) {
+ // Removes timestamp, potential flake depending on time zone
+ return !(element.classList.contains("responseTime-column"));
+ });
+ var entries = Array.from(children, td => td.textContent).filter(text => text);
InspectorTest.addResult(" " + entries.join(", "));
}
}

Powered by Google App Engine
This is Rietveld 408576698