blob: 5e2efb539cfd4d8272262f523105c5474c0e8376 [file] [log] [blame]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cONtENT-LAnguAGE" content="ja-JP">
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a>:
map content-language to -webkit-locale. This particular test tests that the
matching of the http-equiv attribute to the content-language state is case
insensitive.
</p>
<div id="console"></div>
<div id="x"></div>
<script>
function languageOfNode(id) {
var element = document.getElementById(id);
return window.getComputedStyle(element).webkitLocale;
}
shouldBeEqualToString("languageOfNode('x')", '"ja-JP"');
</script>
</body>
</html>