2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"content-language">
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 HTTP-EQUIV content-language to -webkit-locale. This particular test tests that
10 a content-language with missing content is effectively ignored. This expectation
11 may change, see comments in bug.
13 <div id=
"console"></div>
15 <div id=
"y" lang=
"ar"></div>
17 function languageOfNode(id
) {
18 var element
= document
.getElementById(id
);
19 return window
.getComputedStyle(element
).webkitLocale
;
21 shouldBeEqualToString("languageOfNode('x')", "auto");
22 shouldBeEqualToString("languageOfNode('y')", '"ar"');