Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / border-image-null-image-crash.html
blob9645dcb811b3624e85ff014134bba754d99fa105
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
10 description("Tests that shorthand border-image with a null image doesn't crash.");
12 var testContainer = document.createElement("div");
13 document.body.appendChild(testContainer);
15 testContainer.innerHTML = '<div id="test">hello</div>';
17 e = document.getElementById('test');
18 computedStyle = window.getComputedStyle(e, null);
19 e.style.borderImage = "10% fill";
21 shouldBe("computedStyle.getPropertyValue('border-image')", "'none'");
23 document.body.removeChild(testContainer);
24 </script>
25 </body>
26 </html>