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