Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / styles / styles-redirected-css.html
1 <html>
2 <head>
3 <link rel="stylesheet" href="resources/styles-redirected-css.php" type="text/css">
4 <script src="../inspector-test.js"></script>
5 <script src="../elements-test.js"></script>
6 <script>
7
8 function test()
9 {
10     InspectorTest.selectNodeAndWaitForStyles("test_div", step1);
11
12     function step1()
13     {
14         var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("background-color");
15         treeItem.property.setDisabled(true, step2);
16     }
17
18     function step2(newStyle)
19     {
20         InspectorTest.assertTrue(!!newStyle, "Could not disable style in redirected css.");
21         InspectorTest.completeTest();
22     }
23 }
24 </script>
25 </head>
26 <body onload="runTest()">
27 <p>Tests that styles in redirected css are editable.</p>
28 <a href="https://bugs.webkit.org/show_bug.cgi?id=68631">Bug 68631</a>
29
30 <div id="test_div">test</div>
31 </body>
32 </html>
33