| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 5 <script src="../../../http/tests/inspector/elements-test.js"></script> | |
| 6 | |
| 7 <script> | |
| 8 | |
| 9 function test() | |
| 10 { | |
| 11 InspectorTest.selectNodeAndWaitForStyles("body-id", step1); | |
| 12 | |
| 13 function step1() | |
| 14 { | |
| 15 InspectorTest.addResult("Before disable"); | |
| 16 InspectorTest.dumpSelectedElementStyles(true, false, true); | |
| 17 InspectorTest.toggleStyleProperty("margin", false); | |
| 18 InspectorTest.waitForStyles("body-id", step2); | |
| 19 } | |
| 20 | |
| 21 function step2() | |
| 22 { | |
| 23 InspectorTest.addResult("After disable"); | |
| 24 InspectorTest.dumpSelectedElementStyles(true, false, true); | |
| 25 InspectorTest.toggleStyleProperty("margin", true); | |
| 26 InspectorTest.waitForStyles("body-id", step3); | |
| 27 } | |
| 28 | |
| 29 function step3() | |
| 30 { | |
| 31 InspectorTest.addResult("After enable"); | |
| 32 InspectorTest.dumpSelectedElementStyles(true, false, true); | |
| 33 InspectorTest.completeTest(); | |
| 34 } | |
| 35 } | |
| 36 </script> | |
| 37 </head> | |
| 38 | |
| 39 <body onload="runTest()" id="body-id" style="margin: 10px"> | |
| 40 <p> | |
| 41 Tests that disabling shorthand removes the "overriden" mark from the UA shorthan
d it overrides. | |
| 42 </p> | |
| 43 | |
| 44 </body> | |
| 45 </html> | |
| OLD | NEW |