Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / internal-properties-text.html
1 <html>
2 <head>
3
4 <link rel="stylesheet" href="resources/get-set-stylesheet-text.css">
5
6 <script src="../../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../../http/tests/inspector/elements-test.js"></script>
8 <script>
9
10 function test()
11 {
12     testNewElementStyles();
13
14     function testNewElementStyles()
15     {
16         function callback(error, matchedCSSRules)
17         {
18             if (error) {
19                 InspectorTest.addResult("error: " + error);
20                 return;
21             }
22
23             InspectorTest.addResult("=== Rules for <marquee> ===");
24             InspectorTest.dumpSelectedElementStyles(true, true);
25             InspectorTest.completeTest();
26         }
27
28         function nodeCallback(node)
29         {
30             CSSAgent.getInlineStylesForNode(node.id, callback);
31         }
32
33         InspectorTest.selectNodeWithId("inspected", nodeCallback);
34     }
35 }
36 </script>
37 </head>
38
39 <body onload="runTest()">
40 <p>Tests that querying -internal-* presentation attribute from the inspector works as expected.</p>
41 <marquee scrollamount="1" scrolldelay="50" direction="up" id="inspected">Inspect Me</marquee>
42 </body>
43 </html>