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

Side by Side Diff: LayoutTests/accessibility/insertion-point-line-number-on-password-crashes.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 <body> 6 <body>
7 7
8 <div id="result"></div> 8 <div id="result"></div>
9 9
10 <input type="password" id="password"> 10 <input type="password" id="password">
11 11
12 <script> 12 <script>
13 if (window.accessibilityController) { 13 if (window.accessibilityController) {
14 var result = document.getElementById("result"); 14 var result = document.getElementById("result");
15 15
16 var password = document.getElementById("password"); 16 var password = document.getElementById("password");
17 password.focus(); 17 password.focus();
18 18
19 // Make sure this doesn't crash. 19 // Make sure this doesn't crash.
20 lineNumber = accessibilityController.focusedElement.insertionPointLi neNumber; 20 lineNumber = accessibilityController.focusedElement.insertionPointLi neNumber;
21 result.innerText += "Line number for password element: " + lineNumbe r + "\n"; 21 result.innerText += "Line number for password element: " + lineNumbe r + "\n";
22 } 22 }
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698