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

Unified Diff: android_webview/tools/automated_ui_tests/test/data/select.html

Issue 2146713003: Refactor and add special test runner to support Espresso tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: android_webview/tools/automated_ui_tests/test/data/select.html
diff --git a/android_webview/tools/automated_ui_tests/test/data/select.html b/android_webview/tools/automated_ui_tests/test/data/select.html
new file mode 100644
index 0000000000000000000000000000000000000000..3e6f180604dbe815c48364b628b0e7baa29b8b37
--- /dev/null
+++ b/android_webview/tools/automated_ui_tests/test/data/select.html
@@ -0,0 +1,22 @@
+<!doctype html>
+<html>
+
+<a href="index.html">
+<p>Brisket tri-tip pork doner shankle turkey. Shankle sirloin drumstick ground round filet mignon. Drumstick cow flank, ground round ball tip bresaola pig salami chuck capicola. Strip steak corned beef ham shoulder cow, jowl bacon t-bone shank spare ribs brisket sausage filet mignon.</p></a>
+ <select id="select">
+ <option value="value1">Value 1</option>
+ <option value="value2" selected>Value 2</option>
+ <option value="value3">Value 3</option>
+ </select>
+ <input type="button" id="click" value="Click"/>
+ <script type="text/javascript">
+ function myOpen() {
+ var e = document.createEvent("MouseEvents");
+ e.initMouseEvent("mousedown", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
+ var elem = document.getElementById("select");
+ elem[0].dispatchEvent(e);
+ }
+ var el = document.getElementById("click");
+ el.addEventListener("click", myOpen, false);
+ </script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698