Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css / getComputedStyle / getComputedStyle-border-style-shorthand.html
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>
9
10 description("Tests that the border-style shorthand is computed properly.")
11
12 var testContainer = document.createElement("div");
13 testContainer.contentEditable = true;
14 document.body.appendChild(testContainer);
15
16 testContainer.innerHTML = '<div id="test">hello</div>';
17
18 e = document.getElementById('test');
19 computedStyle = window.getComputedStyle(e, null);
20
21 e.style.borderStyle = "solid dotted";
22 shouldBe("computedStyle.getPropertyValue('border-style')", "'solid dotted'");
23
24 e.style.borderStyle = "solid dotted groove dashed";
25 shouldBe("computedStyle.getPropertyValue('border-style')", "'solid dotted groove dashed'");
26
27 document.body.removeChild(testContainer);
28
29 </script>
30 </body>
31 </html>