OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
3 <head> | 3 <head> |
4 <meta http-equiv="content-language"> | 4 <meta http-equiv="content-language"> |
5 <script src="../../resources/js-test.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: | 8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: |
9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests th
at | 9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests th
at |
10 a content-language with missing content is effectively ignored. This expectation | 10 a content-language with missing content is effectively ignored. This expectation |
11 may change, see comments in bug. | 11 may change, see comments in bug. |
12 </p> | 12 </p> |
13 <div id="console"></div> | 13 <div id="console"></div> |
14 <div id="x"></div> | 14 <div id="x"></div> |
15 <div id="y" lang="ar"></div> | 15 <div id="y" lang="ar"></div> |
16 <script> | 16 <script> |
17 function languageOfNode(id) { | 17 function languageOfNode(id) { |
18 var element = document.getElementById(id); | 18 var element = document.getElementById(id); |
19 return window.getComputedStyle(element).webkitLocale; | 19 return window.getComputedStyle(element).webkitLocale; |
20 } | 20 } |
21 shouldBeEqualToString("languageOfNode('x')", "auto"); | 21 shouldBeEqualToString("languageOfNode('x')", "auto"); |
22 shouldBeEqualToString("languageOfNode('y')", "ar"); | 22 shouldBeEqualToString("languageOfNode('y')", "'ar'"); |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |