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="ja-JP"> | 4 <meta http-equiv="cONtENT-LAnguAGE" content="ja-JP"> |
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 content-language to -webkit-locale. This particular test tests that the | 9 map content-language to -webkit-locale. This particular test tests that the |
10 matching of the http-equiv attribute to the content-language state is case | 10 matching of the http-equiv attribute to the content-language state is case |
11 insensitive. | 11 insensitive. |
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 <script> | 15 <script> |
16 function languageOfNode(id) { | 16 function languageOfNode(id) { |
17 var element = document.getElementById(id); | 17 var element = document.getElementById(id); |
18 return window.getComputedStyle(element).webkitLocale; | 18 return window.getComputedStyle(element).webkitLocale; |
19 } | 19 } |
20 shouldBeEqualToString("languageOfNode('x')", "'ja-JP'"); | 20 shouldBeEqualToString("languageOfNode('x')", '"ja-JP"'); |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |