OLD | NEW |
1 <?php | 1 <?php |
2 header("Content-Language: zh-CN"); | 2 header("Content-Language: zh-CN"); |
3 ?> | 3 ?> |
4 <!DOCTYPE html> | 4 <!DOCTYPE html> |
5 <html xmlns="http://www.w3.org/1999/xhtml"> | 5 <html xmlns="http://www.w3.org/1999/xhtml"> |
6 <head> | 6 <head> |
7 <meta http-equiv="content-language" content="en-GB"> | 7 <meta http-equiv="content-language" content="en-GB"> |
8 <script src="../../js-test-resources/js-test.js"></script> | 8 <script src="../../js-test-resources/js-test.js"></script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
11 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a
>: | 11 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a
>: |
12 Extract HTTP Content-Language header.</p> | 12 Extract HTTP Content-Language header.</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 debug('==> Value extracted from meta "http-equiv" and overriding HTTP "Content
-Language"...'); | 17 debug('==> Value extracted from meta "http-equiv" and overriding HTTP "Content
-Language"...'); |
18 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale',
'"\'en-GB\'"') | 18 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale',
"'\"en-GB\"'") |
19 debug('==> Value set by div "lang" tag...'); | 19 debug('==> Value set by div "lang" tag...'); |
20 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale',
'"\'ar\'"') | 20 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale',
"'\"ar\"'") |
21 debug('==> All done...'); | 21 debug('==> All done...'); |
22 </script> | 22 </script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |