Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / cssText-cache.html
blobcc8ef92eac23e21e076d4d8f0fee1e05ddf3bcb0
1 <body>
2 <div id="box">
3 </div>
4 <div id="results">
5 </div>
6 <script type="text/javascript" charset="utf-8">
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 var style = document.getElementById('box').style;
13 style.left = "10px";
14 checkResult("style.left", "10px");
15 style.left = "20px";
16 checkResult("style.left", "20px");
18 function checkResult(property, expectedValue) {
19 var value = eval(property);
20 var result = ": " + property + " was " + value + ", expected " + expectedValue + "<br>";
21 if (value == expectedValue)
22 result = "<b style=\"color:green\">PASS</b>" + result;
23 else
24 result = "<b style=\"color:red\">FAIL</b>" + result;
25 var results = document.getElementById('results');
26 results.innerHTML += result;
29 </script>
30 </body>