| 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 <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. This particular test tests that the | 10 map content-language to -webkit-locale. This particular test tests that the |
| 11 matching of the http-equiv attribute to the content-language state is case | 11 matching of the http-equiv attribute to the content-language state is case |
| 12 insensitive. | 12 insensitive. |
| 13 </p> | 13 </p> |
| 14 <div id="console"></div> | 14 <div id="console"></div> |
| 15 <div id="x"></div> | 15 <div id="x"></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')", "ja-JP"); | 21 shouldBeEqualToString("languageOfNode('x')", "ja-JP"); |
| 22 </script> | 22 </script> |
| 23 <script src="../js/resources/js-test-post.js"></script> | |
| 24 </body> | 23 </body> |
| 25 </html> | 24 </html> |
| OLD | NEW |