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

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: rebase, vulcanize 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 0deeb3b54425f502e464344745c051eaf7ac753a..2aff411c096ae6574622df984bba39b271212481 100644
--- a/chrome/test/data/webui/md_history/test_util.js
+++ b/chrome/test/data/webui/md_history/test_util.js
@@ -111,6 +111,15 @@ function waitForEvent(element, eventName, predicate) {
}
/**
+ * @return {Promise}
+ */
+function waitForAnimationFrame() {
+ return new Promise(function(resolve) {
+ requestAnimationFrame(function() { setTimeout(resolve); });
+ });
+}
+
+/**
* Sends a shift click event to |element|.
* @param {HTMLElement} element
*/

Powered by Google App Engine
This is Rietveld 408576698