blob: 37c5a2246f809d5998209421f0c9815dd25a3fff [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description(
"<pre>Check return value of navigator.language."
);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.setPOSIXLocale("en_US.iso88591");
}
var language = navigator.language.toLowerCase();
if (language.length == 2)
shouldBe("language", "'en'");
else
shouldBe("language", "'en-us'");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>