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

Unified Diff: LayoutTests/fast/forms/week/week-setrangetext-expected.txt

Issue 596723002: Enabling selection API for input type=<file, color, date, email, number> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Enabling Selection API for input type email and number Created 6 years, 3 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/fast/forms/week/week-setrangetext-expected.txt
diff --git a/LayoutTests/fast/forms/week/week-setrangetext-expected.txt b/LayoutTests/fast/forms/week/week-setrangetext-expected.txt
index a650d9a6b780abe8993bbffdfa97e02d013128d8..33b6d53e6697355fae4e25c1b38e3d93b70706ae 100644
--- a/LayoutTests/fast/forms/week/week-setrangetext-expected.txt
+++ b/LayoutTests/fast/forms/week/week-setrangetext-expected.txt
@@ -1,4 +1,4 @@
-Test setRangeText() method is not available in week inputs.
+Test setRangeText() on week inputs.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -6,9 +6,11 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
Running tests on input with attributes: {"type":"week"}
-element.value = '0123456789XYZ'
-PASS element.setRangeText('ABC', 0, 0) threw exception InvalidStateError: Failed to execute 'setRangeText' on 'HTMLInputElement': The input element's type ('week') does not support selection..
+element.value = '0123456789'
+element.setSelectionRange(2, 5)
+element.setRangeText('432')
PASS element.value is ""
+PASS element.value is not 0143256789
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/forms/week/week-setrangetext.html ('k') | Source/core/html/forms/BaseDateAndTimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698