| 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=""> | 4 <meta http-equiv="content-language" content=""> |
| 5 <link rel="stylesheet" href="../js/resources/js-test-style.css"> | |
| 6 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 7 </head> | 6 </head> |
| 8 <body> | 7 <body> |
| 9 <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
>: |
| 10 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests | 9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests |
| 11 that a content-language of empty string is ignored. This expectation may | 10 that a content-language of empty string is ignored. This expectation may |
| 12 change, see bug. HTML5 decrees that the meta element be ignored in case of the | 11 change, see bug. HTML5 decrees that the meta element be ignored in case of the |
| 13 empty string. It's unclear what other browsers do. | 12 empty string. It's unclear what other browsers do. |
| 14 </p> | 13 </p> |
| 15 <div id="console"></div> | 14 <div id="console"></div> |
| 16 <div id="x"></div> | 15 <div id="x"></div> |
| 17 <div id="y" lang="ar"></div> | 16 <div id="y" lang="ar"></div> |
| 18 <script> | 17 <script> |
| 19 function languageOfNode(id) { | 18 function languageOfNode(id) { |
| 20 var element = document.getElementById(id); | 19 var element = document.getElementById(id); |
| 21 return window.getComputedStyle(element).webkitLocale; | 20 return window.getComputedStyle(element).webkitLocale; |
| 22 } | 21 } |
| 23 shouldBeEqualToString("languageOfNode('x')", "auto"); | 22 shouldBeEqualToString("languageOfNode('x')", "auto"); |
| 24 shouldBeEqualToString("languageOfNode('y')", "ar"); | 23 shouldBeEqualToString("languageOfNode('y')", "ar"); |
| 25 </script> | 24 </script> |
| 26 </body> | 25 </body> |
| 27 </html> | 26 </html> |
| OLD | NEW |