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

Side by Side Diff: LayoutTests/fast/forms/reportValidity-002-expected.txt

Issue 660783002: Implement reportValidity() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply keishi's comments + pull Created 6 years, 2 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
OLDNEW
(Empty)
1 ValidationMessageClient: main-message=Please fill out this field. sub-message=
2 ValidationMessageClient: main-message=Please match the requested format. sub-mes sage=
3 ValidationMessageClient: main-message=Please fill out this field. sub-message=
4 ValidationMessageClient: main-message=Please select an item in the list. sub-mes sage=
5 This test checks if reportValidity() returns correctly a false (meaning error) r esult on invalid elements, and returns a true result on a blank but valid elemen ts. Blank but non-placeholder label options are valid.
6
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
8
9
10
11 PASS reportValidityFor("input-empty") is false
12 PASS document.activeElement is $("input-empty")
13 PASS reportValidityFor("input-pattern-mismatch") is false
14 PASS document.activeElement is $("input-pattern-mismatch")
15 PASS reportValidityFor("textarea") is false
16 PASS document.activeElement is $("textarea")
17 PASS reportValidityFor("select-no-explicit-value") is true
18 PASS document.activeElement is not $("select-no-explicit-value")
19 PASS reportValidityFor("select-placeholder") is false
20 PASS document.activeElement is $("select-placeholder")
21 PASS reportValidityFor("select-non-placeholder") is true
22 PASS document.activeElement is not $("select-non-placeholder")
23 PASS successfullyParsed is true
24
25 TEST COMPLETE
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698