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