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

Unified Diff: LayoutTests/platform/chromium/fast/forms/suggestion-picker/resources/suggestion-picker-common.js

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/platform/chromium/fast/forms/suggestion-picker/resources/suggestion-picker-common.js
diff --git a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/resources/suggestion-picker-common.js b/LayoutTests/platform/chromium/fast/forms/suggestion-picker/resources/suggestion-picker-common.js
deleted file mode 100644
index 2d953580e8f472114f1d8c12c7647e3009ec0b0d..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/fast/forms/suggestion-picker/resources/suggestion-picker-common.js
+++ /dev/null
@@ -1,23 +0,0 @@
-function valueForEntry(element) {
- if (!element)
- return null;
- var value = element.dataset.value;
- if (typeof value === "string")
- return value;
- var action = element.dataset.action;
- if (typeof action === "string")
- return "@" + action;
- return null;
-}
-
-function highlightedEntry() {
- return valueForEntry(popupWindow.document.activeElement);
-}
-
-function entryValues() {
- var elements = popupWindow.document.getElementsByClassName("suggestion-list-entry");
- var values = [];
- for (var i = 0; i < elements.length; ++i)
- values.push(valueForEntry(elements[i]));
- return values;
-}

Powered by Google App Engine
This is Rietveld 408576698