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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/press-works-on-text-fields.html

Issue 2772913003: AXObject::performDefaultAction() should focus if it can't click (Closed)
Patch Set: Add test Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXMenuList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <input id="input">
6
7 <script>
8 async_test(function(t) {
9 var input = document.getElementById("input");
10 input.addEventListener("focus", function() {
11 t.done();
12 });
13 var axInput = accessibilityController.accessibleElementById("input");
14 axInput.press();
15 }, "Calling press() focuses an input.");
16 </script>
17
18 <textarea id="textarea"></textarea>
19
20 <script>
21 async_test(function(t) {
22 var textarea = document.getElementById("textarea");
23 textarea.addEventListener("focus", function() {
24 t.done();
25 });
26 var axTextarea = accessibilityController.accessibleElementById("textarea");
27 axTextarea.press();
28 }, "Calling press() focuses a textarea.");
29 </script>
30
31 <div id="contenteditable" contenteditable></div>
32
33 <script>
34 async_test(function(t) {
35 var contenteditable = document.getElementById("contenteditable");
36 contenteditable.addEventListener("focus", function() {
37 t.done();
38 });
39 var axContenteditable = accessibilityController.accessibleElementById(
40 "contenteditable");
41 axContenteditable.press();
42 }, "Calling press() focuses a contenteditable.");
43 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXMenuList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698