Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / border-image-style-length.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../../resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9
10 description("Test the style.length of an element with a border-image.")
11
12 var testContainer = document.createElement("div");
13 document.body.appendChild(testContainer);
14
15 testContainer.innerHTML = '<div id="test">hello</div>';
16
17 e = document.getElementById('test');
18 e.style.borderImage = "url(dummy://test.png) 10 / 13px 1.5em 1em 10px";
19 shouldBe("e.style.length", "5");
20 e.style.borderImage = "";
21 shouldBe("e.style.length", "0");
22 e.style.webkitBorderImage = "url(dummy://test.png) 0 7 0 13 / 0 7 0 13 stretch stretch";
23 shouldBe("e.style.length", "1");
24 document.body.removeChild(testContainer);
25
26 </script>
27 <script src="../../resources/js-test-post.js"></script>
28 </body>
29 </html>