| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 description("Tests that querying the priority for a shorthand works."); | 10 description("Tests that querying the priority for a shorthand works."); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'"); | 26 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'"); |
| 27 shouldBe("e.style.getPropertyPriority('border')", "''"); | 27 shouldBe("e.style.getPropertyPriority('border')", "''"); |
| 28 | 28 |
| 29 e.style.border = ""; | 29 e.style.border = ""; |
| 30 e.style.setProperty("border", "20px solid green", "!important"); | 30 e.style.setProperty("border", "20px solid green", "!important"); |
| 31 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'"); | 31 shouldBe("e.style.getPropertyValue('border')", "'20px solid green'"); |
| 32 shouldBe("e.style.getPropertyPriority('border')", "'important'"); | 32 shouldBe("e.style.getPropertyPriority('border')", "'important'"); |
| 33 | 33 |
| 34 document.body.removeChild(testContainer); | 34 document.body.removeChild(testContainer); |
| 35 </script> | 35 </script> |
| 36 <script src="../js/resources/js-test-post.js"></script> | |
| 37 </body> | 36 </body> |
| 38 </html> | 37 </html> |
| OLD | NEW |