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

Unified Diff: LayoutTests/accessibility/input-text-selected-range.html

Issue 1050123003: Rewrote password layout test and removed obsolete tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renamed some more tests for consistency. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/accessibility/input-text-selected-range.html
diff --git a/LayoutTests/accessibility/input-text-selected-range.html b/LayoutTests/accessibility/input-text-selected-range.html
deleted file mode 100644
index f004a14009334fd1c05d60e8678febc4fffe02c5..0000000000000000000000000000000000000000
--- a/LayoutTests/accessibility/input-text-selected-range.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <script src="../resources/js-test.js"></script>
- </head>
- <body>
-
- <input type="text" id="input" value="Line 1">
-
- <p id="description"></p>
- <div id="console"></div>
-
- <script>
- description("This tests that text selection is reported correctly for text input elements.");
-
- if (window.accessibilityController) {
-
- var input = document.getElementById('input');
- input.focus();
- var inputAccessible =
- accessibilityController.accessibleElementById('input');
-
- // Select the entire contents.
- input.select();
- shouldBeZero("inputAccessible.selectionStart");
- shouldBeEqualToNumber("inputAccessible.selectionEnd", 6);
- shouldBeEqualToNumber("inputAccessible.selectionStartLineNumber", 0);
- shouldBeEqualToNumber("inputAccessible.selectionEndLineNumber", 0);
-
- // Select all possible text ranges.
- for (var start = 0; start < 7; ++start) {
- for (var end = start + 1; end < 7; ++end) {
- input.setSelectionRange(start, end);
- shouldBeEqualToNumber("inputAccessible.selectionStart", start);
- shouldBeEqualToNumber("inputAccessible.selectionEnd", end);
- shouldBeEqualToNumber("inputAccessible.selectionStartLineNumber", 0);
- shouldBeEqualToNumber("inputAccessible.selectionEndLineNumber", 0);
- }
- }
-
- }
- </script>
-
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698