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

Side by Side Diff: LayoutTests/accessibility/textbox-role-reports-selection.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC> 1 <!DOCTYPE HTML PUBLIC>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../fast/js/resources/js-test-pre.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 This tests that the AXSelection property is correctly reported for non-native te xt boxes.<br> 7 This tests that the AXSelection property is correctly reported for non-native te xt boxes.<br>
8 <div role="textbox" id="ariaTextBox" aria-multiline="false" tabindex="0">Some te xt in a textbox (34 chars).</div> 8 <div role="textbox" id="ariaTextBox" aria-multiline="false" tabindex="0">Some te xt in a textbox (34 chars).</div>
9 <div id="console"></div> 9 <div id="console"></div>
10 <script> 10 <script>
11 function assertEvaluatesTo(actual, expected, message) { 11 function assertEvaluatesTo(actual, expected, message) {
12 var actualValue = 0; 12 var actualValue = 0;
13 try { 13 try {
14 actualValue = eval(actual); 14 actualValue = eval(actual);
(...skipping 30 matching lines...) Expand all
45 assertCorrectAXSelection(ariaTextBox, "{15, 0}", "Collapsed selection in the middle"); 45 assertCorrectAXSelection(ariaTextBox, "{15, 0}", "Collapsed selection in the middle");
46 assertCorrectAXSelection(ariaTextBox, "{15, 2}", "Non-collapsed selectio n in the middle"); 46 assertCorrectAXSelection(ariaTextBox, "{15, 2}", "Non-collapsed selectio n in the middle");
47 assertCorrectAXSelection(ariaTextBox, "{0, 15}", "Non-collapsed selectio n at the start"); 47 assertCorrectAXSelection(ariaTextBox, "{0, 15}", "Non-collapsed selectio n at the start");
48 assertCorrectAXSelection(ariaTextBox, "{15, "+ (textLength - 15) + "}", "Non-collapsed selection at the end"); 48 assertCorrectAXSelection(ariaTextBox, "{15, "+ (textLength - 15) + "}", "Non-collapsed selection at the end");
49 } 49 }
50 50
51 </script> 51 </script>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698