| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../../http/tests/inspector/inspector-test
.js"></script> | 3 <script type="text/javascript" src="../../../http/tests/inspector/inspector-test
.js"></script> |
| 4 <script> | 4 <script> |
| 5 function test() | 5 function test() |
| 6 { | 6 { |
| 7 var cssProperty = "box-shadow"; | 7 var cssProperty = "box-shadow"; |
| 8 var properties = WebInspector.CSSMetadata.cssPropertiesMetainfo.startsWith(c
ssProperty); | 8 if (WebInspector.CSSMetadata.cssPropertiesMetainfo.hasProperty(cssProperty)) |
| 9 if (properties.length) | |
| 10 InspectorTest.addResult(cssProperty + " is supported"); | 9 InspectorTest.addResult(cssProperty + " is supported"); |
| 11 else | 10 else |
| 12 InspectorTest.addResult(cssProperty + " is NOT supported"); | 11 InspectorTest.addResult(cssProperty + " is NOT supported"); |
| 13 var marginLonghands = WebInspector.CSSMetadata.cssPropertiesMetainfo.longhan
ds("margin"); | 12 var marginLonghands = WebInspector.CSSMetadata.cssPropertiesMetainfo.longhan
ds("margin"); |
| 14 marginLonghands.sort(); | 13 marginLonghands.sort(); |
| 15 InspectorTest.addResult("Margin longhands: " + marginLonghands.join(", ")); | 14 InspectorTest.addResult("Margin longhands: " + marginLonghands.join(", ")); |
| 16 InspectorTest.completeTest(); | 15 InspectorTest.completeTest(); |
| 17 } | 16 } |
| 18 </script> | 17 </script> |
| 19 </head> | 18 </head> |
| 20 <body onLoad="runTest();"> | 19 <body onLoad="runTest();"> |
| 21 | 20 |
| 22 </body> | 21 </body> |
| 23 </html> | 22 </html> |
| OLD | NEW |