Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / computed-style-set-property.html
blobc1d338f037afa020019c05114d87b295aed25ebf
1 <body>
2 <p>You should see two "PASS" messages below:</p>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 document.write("Computed style parent (should be null): " + document.defaultView.getComputedStyle(document.body, null).parentRule);
9 try {
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.");
12 } catch (ex) {
13 document.write("<p>PASS: got an exception when trying to change a computed style declaration, " + ex);
16 try {
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.");
19 } catch (ex) {
20 document.write("<p>PASS: got an exception when trying to change a computed style declaration via setProperty, " + ex);
23 </script>
24 </body>