OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../../http/tests/inspector/elements-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function test() | 7 function test() |
8 { | 8 { |
9 var colorAwareProperties = ["bAckground-ColoR", "COloR", "Border-coLoR", "bo
rder-right-color", "BOX-SHADOW"]; | 9 var colorAwareProperties = ["bAckground-ColoR", "COloR", "Border-coLoR", "bo
rder-right-color", "BOX-SHADOW"]; |
10 for (var i = 0; i < colorAwareProperties.length; ++i) { | 10 for (var i = 0; i < colorAwareProperties.length; ++i) { |
11 var isColorAware = WebInspector.CSSMetadata.isColorAwareProperty(colorAw
areProperties[i]); | 11 var isColorAware = WebInspector.CSSMetadata.isColorAwareProperty(colorAw
areProperties[i]); |
12 InspectorTest.addResult(colorAwareProperties[i] + (isColorAware ? " is"
: " is NOT") + " color aware"); | 12 InspectorTest.addResult(colorAwareProperties[i] + (isColorAware ? " is"
: " is NOT") + " color aware"); |
13 } | 13 } |
14 InspectorTest.completeTest(); | 14 InspectorTest.completeTest(); |
15 } | 15 } |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 | 18 |
19 <body onload="runTest()"> | 19 <body onload="runTest()"> |
20 <p> | 20 <p> |
21 Tests that color-related mix-cased CSS properties are actually color aware. | 21 Tests that color-related mix-cased CSS properties are actually color aware. |
22 </p> | 22 </p> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |