Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>NavigatorLanguage: navigator.language returns the user's preferred language</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<h2>Precondition</h2>
<p>The user agent's preferred language is set as English (en).</p>
<div id="log"></div>
<script>
test(function() {
assert_equals(navigator.language, "en");
});
</script>