| <html> |
| <head> |
| <script src="../../http/tests/inspector/inspector-test.js"></script> |
| <script src="../../http/tests/inspector/elements-test.js"></script> |
| <script> |
| |
| function test() |
| { |
| WebInspector.showPanel("elements"); |
| InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| |
| function step1(node) |
| { |
| InspectorTest.addResult("Before style property removal:"); |
| InspectorTest.dumpSelectedElementStyles(true); |
| node.removeAttribute("style"); |
| InspectorTest.waitForStyles("inspected", step2); |
| } |
| |
| function step2() |
| { |
| InspectorTest.addResult("After style property removal:"); |
| InspectorTest.dumpSelectedElementStyles(true); |
| InspectorTest.completeTest(); |
| } |
| } |
| |
| </script> |
| </head> |
| <body onload="runTest()"> |
| <p> |
| 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> |
| </p> |
| |
| <div id="inspected" style="color: red"></div> |
| </body> |
| </html> |