| 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 shorthand border-image with a null image doesn't crash."
); | 10 description("Tests that shorthand border-image with a null image doesn't crash."
); |
| 11 | 11 |
| 12 var testContainer = document.createElement("div"); | 12 var testContainer = document.createElement("div"); |
| 13 document.body.appendChild(testContainer); | 13 document.body.appendChild(testContainer); |
| 14 | 14 |
| 15 testContainer.innerHTML = '<div id="test">hello</div>'; | 15 testContainer.innerHTML = '<div id="test">hello</div>'; |
| 16 | 16 |
| 17 e = document.getElementById('test'); | 17 e = document.getElementById('test'); |
| 18 computedStyle = window.getComputedStyle(e, null); | 18 computedStyle = window.getComputedStyle(e, null); |
| 19 e.style.borderImage = "10% fill"; | 19 e.style.borderImage = "10% fill"; |
| 20 | 20 |
| 21 shouldBe("computedStyle.getPropertyValue('border-image')", "'none'"); | 21 shouldBe("computedStyle.getPropertyValue('border-image')", "'none'"); |
| 22 | 22 |
| 23 document.body.removeChild(testContainer); | 23 document.body.removeChild(testContainer); |
| 24 </script> | 24 </script> |
| 25 <script src="../js/resources/js-test-post.js"></script> | |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |