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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/set-selection-link.html

Issue 2164813003: Fix visible position calculation in accessible setSelection (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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.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 <div id="main" role="main">
6
7 <p id="para">This<br> is a<a href="#g">test</a>of selection</p>
8
9 </div>
10
11 <script>
12 test(function()
13 {
14 var axPara = accessibilityController.accessibleElementById("para");
15 var axLastText = axPara.childAtIndex(4);
16 assert_equals(axLastText.role, "AXRole: AXStaticText");
17 assert_equals(axLastText.name, "of selection");
18
19 axLastText.setSelectedTextRange(0, 2);
20
21 var selection = window.getSelection();
22 var range = selection.getRangeAt(0);
David Tseng 2016/07/20 20:39:15 Can we verify the selection data returned by ax (o
23
24 assert_equals(range.toString(), "of");
25 }, "Select text after a link.");
26 </script>
27
28 <script>
29 if (window.testRunner)
30 document.getElementById("main").style.display = "none";;
31 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698