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

Unified Diff: chrome/test/data/webui/md_history/test_util.js

Issue 2238163002: [MD History] Add UMA stats for switching views and the CBD button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@start_focus_in_search_bar
Patch Set: add test, add grouped history Created 4 years, 4 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: chrome/test/data/webui/md_history/test_util.js
diff --git a/chrome/test/data/webui/md_history/test_util.js b/chrome/test/data/webui/md_history/test_util.js
index 7ec8a6d7df545120647fac087afc04d05caec28f..d2ae190ecaecfc9d28468739411d5f32caf6608e 100644
--- a/chrome/test/data/webui/md_history/test_util.js
+++ b/chrome/test/data/webui/md_history/test_util.js
@@ -109,3 +109,12 @@ function waitForEvent(element, eventName, predicate) {
element.addEventListener(eventName, listener);
});
}
+
+/**
+ * @return {Promise}
+ */
+function waitForAnimationFrame() {
+ return new Promise(function(resolve) {
+ requestAnimationFrame(resolve);
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698