Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / 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     WebInspector.showPanel("elements");
13     testNewElementStyles();
14
15     function testNewElementStyles()
16     {
17         function callback(error, matchedCSSRules)
18         {
19             if (error) {
20                 InspectorTest.addResult("error: " + error);
21                 return;
22             }
23
24             InspectorTest.addResult("=== Rules for <marquee> ===");
25             InspectorTest.dumpSelectedElementStyles(true, true);
26             InspectorTest.completeTest();
27         }
28
29         function nodeCallback(node)
30         {
31             CSSAgent.getInlineStylesForNode(node.id, callback);
32         }
33
34         InspectorTest.selectNodeWithId("inspected", nodeCallback);
35     }
36 }
37 </script>
38 </head>
39
40 <body onload="runTest()">
41 <p>Tests that querying -internal-* presentation attribute from the inspector works as expected.</p>
42 <marquee scrollamount="1" scrolldelay="50" direction="up" id="inspected">Inspect Me</marquee>
43 </body>
44 </html>