arv@chromium.org | 5e72eb2 | 2010-08-06 00:46:10 +0000 | [diff] [blame] | 1 | This test checks if setCustomValidity causes CSS to get applied correctly. |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | |
| 7 | PASS test.validity.customError is false |
| 8 | PASS test.validationMessage is "" |
| 9 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 10 | PASS test.validity.customError is true |
| 11 | PASS test.validationMessage is "Custom validation message" |
| 12 | PASS getComputedStyle(test).backgroundColor is "rgb(255, 0, 0)" |
| 13 | PASS test.validity.customError is false |
| 14 | PASS test.validationMessage is "" |
| 15 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 16 | PASS test.validity.customError is false |
| 17 | PASS test.validationMessage is "" |
| 18 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 19 | PASS test.validity.customError is true |
| 20 | PASS test.validationMessage is "Custom validation message" |
| 21 | PASS getComputedStyle(test).backgroundColor is "rgb(255, 0, 0)" |
| 22 | PASS test.validity.customError is false |
| 23 | PASS test.validationMessage is "" |
| 24 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 25 | PASS test.validity.customError is false |
| 26 | PASS test.validationMessage is "" |
| 27 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 28 | PASS test.validity.customError is true |
| 29 | PASS test.validationMessage is "Custom validation message" |
| 30 | PASS getComputedStyle(test).backgroundColor is "rgb(255, 0, 0)" |
| 31 | PASS test.validity.customError is false |
| 32 | PASS test.validationMessage is "" |
| 33 | PASS getComputedStyle(test).backgroundColor is "rgb(0, 255, 0)" |
| 34 | PASS successfullyParsed is true |
| 35 | |
| 36 | TEST COMPLETE |
| 37 | |