blob: 683afa0d453d8e221fd5c2f1ff0e1ca60bd1b64b [file] [log] [blame]
Test direct adjacent style update on changes of the :checked state of input element.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Initial state is checked through the checked attribute.
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(0, 255, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(0, 255, 0)"
Checking the boxes through API.
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(0, 255, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(0, 255, 0)"
Unchecking through API
PASS getComputedStyle(document.getElementById("foo-with-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-with-renderer")).backgroundColor is "rgb(255, 0, 0)"
PASS getComputedStyle(document.getElementById("foo-without-renderer")).backgroundColor is "rgb(255, 255, 255)"
PASS getComputedStyle(document.getElementById("bar-without-renderer")).backgroundColor is "rgb(255, 0, 0)"
PASS successfullyParsed is true
TEST COMPLETE