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

Unified Diff: content/test/data/accessibility/event/menulist-popup.html

Issue 1186623002: This test needs to use EventSender instead of initMouseEvent so that the pending fix for 423975 can… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/accessibility/event/menulist-popup.html
diff --git a/content/test/data/accessibility/event/menulist-popup.html b/content/test/data/accessibility/event/menulist-popup.html
index f2d4386c9c33832883b5512dcbd1ba28c4ddfbad..895079a28de539561fff4ff9f30e4365fe991c70 100644
--- a/content/test/data/accessibility/event/menulist-popup.html
+++ b/content/test/data/accessibility/event/menulist-popup.html
@@ -14,9 +14,9 @@
<script>
function go() {
var select = document.querySelector('select');
- var event = document.createEvent('MouseEvents');
- event.initMouseEvent('mousedown', true, true, window);
- select.dispatchEvent(event);
+ var rect = select.options[0].getBoundingClientRect();
+ eventSender.mouseMoveTo(rect.left + 1, rect.top + 1);
+ eventSender.mouseDown(0);
}
</script>
</body>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698