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" content="zh-CN"> | 4 <meta http-equiv="content-language" content="zh-CN"> |
5 <link rel="stylesheet" href="../js/resources/js-test-style.css"> | 5 <link rel="stylesheet" href="../js/resources/js-test-style.css"> |
6 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../js/resources/js-test-pre.js"></script> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: | 9 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: |
10 map content-language to -webkit-locale.</p> | 10 map content-language to -webkit-locale.</p> |
11 <div id="console"></div> | 11 <div id="console"></div> |
12 <div id="x"></div> | 12 <div id="x"></div> |
13 <div id="y" lang="ar"></div> | 13 <div id="y" lang="ar"></div> |
14 <script> | 14 <script> |
15 function languageOfNode(id) { | 15 function languageOfNode(id) { |
16 var element = document.getElementById(id); | 16 var element = document.getElementById(id); |
17 return window.getComputedStyle(element).webkitLocale; | 17 return window.getComputedStyle(element).webkitLocale; |
18 } | 18 } |
19 shouldBeEqualToString("languageOfNode('x')", "zh-CN"); | 19 shouldBeEqualToString("languageOfNode('x')", "zh-CN"); |
20 shouldBeEqualToString("languageOfNode('y')", "ar"); | 20 shouldBeEqualToString("languageOfNode('y')", "ar"); |
21 </script> | 21 </script> |
22 <script src="../js/resources/js-test-post.js"></script> | |
23 </body> | 22 </body> |
24 </html> | 23 </html> |
OLD | NEW |