upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / fast / css / webkit-color-adjust.html
1 <head>
2 <script>
3 var output = [];
4
5 function test(id, expected) {
6     var adjust = window.getComputedStyle(document.getElementById(id)).webkitPrintColorAdjust;
7     if (adjust == expected)
8         output.push("SUCCESS");
9     else
10         output.push("FAILURE.  -webkit-print-color-adjust was " + adjust + ", it should have been " + expected);
11 }
12
13 function runTests() {
14     if (window.layoutTestController)
15         window.layoutTestController.dumpAsText();
16
17     test("economy", "economy");
18     test("exact", "exact");
19
20     document.body.innerHTML = output.join("\n");
21 }
22
23 </script>
24 </head>
25 <body onLoad="runTests();" style="white-space: pre-wrap;">
26 <div id="economy" style="-webkit-print-color-adjust:economy;"></div>
27 <div id="exact" style="-webkit-print-color-adjust:exact;"></div>
28 </body>