OLD | NEW |
1 <?php | 1 <?php |
2 header("Content-Language: fr \t , fi "); | 2 header("Content-Language: fr \t , fi "); |
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 <script src="../../js-test-resources/js-test.js"></script> | 7 <script src="../../js-test-resources/js-test.js"></script> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a
>: | 10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=97929">bug 97929</a
>: |
11 Extract HTTP Content-Language header.</p> | 11 Extract HTTP Content-Language header.</p> |
12 <div id="console"></div> | 12 <div id="console"></div> |
13 <div id="x"></div> | 13 <div id="x"></div> |
14 <div id="y" lang="ar"></div> | 14 <div id="y" lang="ar"></div> |
15 <script> | 15 <script> |
16 debug('==> Value extracted singly from HTTP "Content-Language" header...'); | 16 debug('==> Value extracted singly from HTTP "Content-Language" header...'); |
17 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale',
'"\'fr\'"') | 17 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale',
"'\"fr\"'") |
18 debug('==> Value set by div "lang" tag...'); | 18 debug('==> Value set by div "lang" tag...'); |
19 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale',
'"\'ar\'"') | 19 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale',
"'\"ar\"'") |
20 debug('==> All done...'); | 20 debug('==> All done...'); |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |