| <script type="text/javascript" src="../http/tests/inspector-protocol/resources/protocol-test.js"></script> |
| function handleSupportedCSSProperties(messageObject) |
| if ("error" in messageObject) |
| InspectorTest.log(messageObject.error.message); |
| var cssProperty = "box-shadow"; |
| var entries = messageObject["result"]["cssProperties"]; |
| for (var i = 0; i < entries.length; ++i) { |
| if (entries[i].name === cssProperty) { |
| InspectorTest.log(entries[i].name + " is supported"); |
| if (i === entries.length) |
| InspectorTest.log(cssProperty + " is NOT supported"); |
| InspectorTest.completeTest(); |
| InspectorTest.sendCommand("CSS.getSupportedCSSProperties", {}, handleSupportedCSSProperties); |
| <body onLoad="runTest();"> |