Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / elements-delete-inline-style.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script>
6
7 function test()
8 {
9     InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
10
11     function step1(node)
12     {
13         InspectorTest.addResult("Before style property removal:");
14         InspectorTest.dumpSelectedElementStyles(true);
15         node.removeAttribute("style");
16         InspectorTest.waitForStyles("inspected", step2);
17     }
18
19     function step2()
20     {
21         InspectorTest.addResult("After style property removal:");
22         InspectorTest.dumpSelectedElementStyles(true);
23         InspectorTest.completeTest();
24     }
25 }
26
27 </script>
28 </head>
29 <body onload="runTest()">
30 <p>
31 Tests that the "style" attribute removal results in the Styles sidebar pane update (not a crash). <a href="http://bugs.webkit.org/show_bug.cgi?id=51478">Bug 51478</a>
32 </p>
33
34 <div id="inspected" style="color: red"></div>
35 </body>
36 </html>