Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / misc / extract-http-content-language.php
blobbea365e2bbc14595feb712f74923796eb3c5b1c0
1 <?php
2 header("Content-Language: zh-CN");
3 ?>
4 <!DOCTYPE html>
5 <html xmlns="http://www.w3.org/1999/xhtml">
6 <head>
7 <script src="../../js-test-resources/js-test.js"></script>
8 </head>
9 <body>
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>
12 <div id="console"></div>
13 <div id="x"></div>
14 <div id="y" lang="ar"></div>
15 <script>
16 debug('==> Value extracted from HTTP "Content-Language" header...');
17 shouldBe('window.getComputedStyle(document.getElementById("x")).webkitLocale', "'\"zh-CN\"'")
18 debug('==> Value set by div "lang" tag...');
19 shouldBe('window.getComputedStyle(document.getElementById("y")).webkitLocale', "'\"ar\"'")
20 debug('==> All done...');
21 </script>
22 </body>
23 </html>