Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector-protocol / css / css-getSupportedCSSProperties.html
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resources/protocol-test.js"></script>
4 <script>
5 function test()
6 {
7     function handleSupportedCSSProperties(messageObject)
8     {
9         if ("error" in messageObject)
10             InspectorTest.log(messageObject.error.message);
11         else {
12             var cssProperty = "box-shadow";
13             var entries = messageObject["result"]["cssProperties"];
14
15             for (var i = 0; i < entries.length; ++i) {
16                 if (entries[i].name === cssProperty) {
17                     InspectorTest.log(entries[i].name + " is supported");
18                     break;
19                 }
20             }
21
22             if (i === entries.length)
23                 InspectorTest.log(cssProperty + " is NOT supported");
24         }
25
26         InspectorTest.completeTest();
27     }
28
29     InspectorTest.sendCommand("CSS.getSupportedCSSProperties", {}, handleSupportedCSSProperties);
30 }
31 </script>
32 </head>
33 <body onLoad="runTest();">
34 </body>
35 </html>