2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"content-language" content=
"zh-CN">
5 <script src=
"../../resources/js-test.js"></script>
8 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=76701">bug
76701</a>:
9 map content-language to -webkit-locale.
</p>
10 <div id=
"console"></div>
12 <div id=
"y" lang=
"ar"></div>
14 function languageOfNode(id
) {
15 var element
= document
.getElementById(id
);
16 return window
.getComputedStyle(element
).webkitLocale
;
18 shouldBeEqualToString("languageOfNode('x')", '"zh-CN"');
19 shouldBeEqualToString("languageOfNode('y')", '"ar"');