2 header("Content-Language: zh-CN");
5 <html xmlns
="http://www.w3.org/1999/xhtml">
7 <meta http
-equiv
="content-language" content
="en-GB">
8 <script src
="../../js-test-resources/js-test.js"></script
>
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
>
15 <div id
="y" lang
="ar"></div
>
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...');