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

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

Issue 2639453002: [MD Bookmarks] Add Select for Bookmarks. (Closed)
Patch Set: Created 3 years, 11 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_bookmarks/test_util.js
diff --git a/chrome/test/data/webui/md_bookmarks/test_util.js b/chrome/test/data/webui/md_bookmarks/test_util.js
index 64755a2f3ce1fea25e9bf214a2f6f3a405a74ad3..9e4a86a328259809c1eca59b32ade7402f214939 100644
--- a/chrome/test/data/webui/md_bookmarks/test_util.js
+++ b/chrome/test/data/webui/md_bookmarks/test_util.js
@@ -69,3 +69,14 @@ function createItem(id, config) {
}
return newItem;
}
+
+/**
+ * Sends a custom click event to |element|.
+ * @param {HTMLElement} element
+ * @param {Object} config
+ */
+function customClick(element, config) {
+ element.dispatchEvent(new MouseEvent('mousedown', config));
+ element.dispatchEvent(new MouseEvent('mouseup', config));
+ element.dispatchEvent(new MouseEvent('click', config));
+}

Powered by Google App Engine
This is Rietveld 408576698