2 <p>You should see two
"PASS" messages below:
</p>
6 testRunner
.dumpAsText();
8 document
.write("Computed style parent (should be null): " + document
.defaultView
.getComputedStyle(document
.body
, null).parentRule
);
10 document
.defaultView
.getComputedStyle(document
.body
, null).color
= "blue";
11 document
.write("<p>FAIL: did not get an exception when trying to change a computed style declaration.");
13 document
.write("<p>PASS: got an exception when trying to change a computed style declaration, " + ex
);
17 document
.defaultView
.getComputedStyle(document
.body
, null).setProperty("color", "blue");
18 document
.write("<p>FAIL: did not get an exception when trying to change a computed style declaration via setProperty.");
20 document
.write("<p>PASS: got an exception when trying to change a computed style declaration via setProperty, " + ex
);