Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / navigator-language.html
bloba433275c9d5320f86854ef02dd0591c9d0ea37b3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description(
9 "<pre>Check return value of navigator.language."
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.setPOSIXLocale("en_US.iso88591");
17 var language = navigator.language.toLowerCase();
18 if (language.length == 2)
19 shouldBe("language", "'en'");
20 else
21 shouldBe("language", "'en-us'");
22 </script>
23 </body>
24 </html>