1 This test checks validity.customError.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Set some value for customError.
7 PASS customErrorFor("fieldset-set") is false
8 PASS customErrorFor("button-set") is true
9 PASS customErrorFor("button-button-set") is false
10 PASS customErrorFor("button-reset-set") is false
11 PASS customErrorFor("select-set") is true
12 PASS customErrorFor("textarea-set") is true
13 PASS customErrorFor("input-set") is true
14 PASS customErrorFor("input-submit-set") is true
16 Set some value for customError, and clear it.
17 PASS customErrorFor("fieldset-set-and-empty") is false
18 PASS customErrorFor("button-set-and-empty") is false
19 PASS customErrorFor("button-button-set-and-empty") is false
20 PASS customErrorFor("button-reset-set-and-empty") is false
21 PASS customErrorFor("select-set-and-empty") is false
22 PASS customErrorFor("textarea-set-and-empty") is false
23 PASS customErrorFor("input-set-and-empty") is false
24 PASS customErrorFor("input-submit-set-and-empty") is false
26 Not any changes for customError.
27 PASS customErrorFor("fieldset-no-changes") is false
28 PASS customErrorFor("button-no-changes") is false
29 PASS customErrorFor("button-button-no-changes") is false
30 PASS customErrorFor("button-reset-no-changes") is false
31 PASS customErrorFor("select-no-changes") is false
32 PASS customErrorFor("textarea-no-changes") is false
33 PASS customErrorFor("input-no-changes") is false
34 PASS customErrorFor("input-submit-no-changes") is false
36 Many changes for customError:
37 Set some value, and set with no arguments.
38 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLFieldSetElement': 1 argument required, but only 0 present.
39 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only 0 present.
40 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only 0 present.
41 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLButtonElement': 1 argument required, but only 0 present.
42 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLSelectElement': 1 argument required, but only 0 present.
43 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLTextAreaElement': 1 argument required, but only 0 present.
44 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only 0 present.
45 PASS setCustomValidity() threw Failed to execute 'setCustomValidity' on 'HTMLInputElement': 1 argument required, but only 0 present.
46 PASS customErrorFor("fieldset-many-changes") is false
47 PASS customErrorFor("button-many-changes") is true
48 PASS customErrorFor("button-button-many-changes") is false
49 PASS customErrorFor("button-reset-many-changes") is false
50 PASS customErrorFor("select-many-changes") is true
51 PASS customErrorFor("textarea-many-changes") is true
52 PASS customErrorFor("input-many-changes") is true
53 PASS customErrorFor("input-submit-many-changes") is true
54 Set with three arguments.
55 PASS customErrorFor("fieldset-many-changes") is false
56 PASS customErrorFor("button-many-changes") is true
57 PASS customErrorFor("button-button-many-changes") is false
58 PASS customErrorFor("button-reset-many-changes") is false
59 PASS customErrorFor("select-many-changes") is true
60 PASS customErrorFor("textarea-many-changes") is true
61 PASS customErrorFor("input-many-changes") is true
62 PASS customErrorFor("input-submit-many-changes") is true
64 PASS customErrorFor("fieldset-many-changes") is false
65 PASS customErrorFor("button-many-changes") is true
66 PASS customErrorFor("button-button-many-changes") is false
67 PASS customErrorFor("button-reset-many-changes") is false
68 PASS customErrorFor("select-many-changes") is true
69 PASS customErrorFor("textarea-many-changes") is true
70 PASS customErrorFor("input-many-changes") is true
71 PASS customErrorFor("input-submit-many-changes") is true
72 Set some value, and set undefined.
73 PASS customErrorFor("fieldset-many-changes") is false
74 PASS customErrorFor("button-many-changes") is true
75 PASS customErrorFor("button-button-many-changes") is false
76 PASS customErrorFor("button-reset-many-changes") is false
77 PASS customErrorFor("select-many-changes") is true
78 PASS customErrorFor("textarea-many-changes") is true
79 PASS customErrorFor("input-many-changes") is true
80 PASS customErrorFor("input-submit-many-changes") is true
82 PASS successfullyParsed is true