summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/reportValidity-invalid-expected.txt
blob: 21727c062946eb26e34a939d025f10c00ffd13a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ValidationMessageClient: main-message=Please fill out this field. sub-message=
ValidationMessageClient: main-message=Please match the requested format. sub-message=Should type 'Lorem ipsum'
ValidationMessageClient: main-message=Please fill out this field. sub-message=
ValidationMessageClient: main-message=Please select an item in the list. sub-message=
ValidationMessageClient: main-message=Please fill out this field. sub-message=
This test checks if reportValidity() returns correctly a false (meaning error) result on invalid elements, and returns a true result on a blank but valid elements. Blank but non-placeholder label options are valid.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


     
PASS reportValidityFor("input-empty") is false
PASS document.activeElement is $("input-empty")
PASS reportValidityFor("input-pattern-mismatch") is false
PASS document.activeElement is $("input-pattern-mismatch")
PASS reportValidityFor("textarea") is false
PASS document.activeElement is $("textarea")
PASS reportValidityFor("select-no-explicit-value") is true
PASS document.activeElement is not $("select-no-explicit-value")
PASS reportValidityFor("select-placeholder") is false
PASS document.activeElement is $("select-placeholder")
PASS reportValidityFor("select-non-placeholder") is true
PASS document.activeElement is not $("select-non-placeholder")
PASS reportValidityFor("sad-form") is false
PASS document.activeElement is $("input-empty")
PASS successfullyParsed is true

TEST COMPLETE