| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="resources/js-test-pre.js"></script> |
| Language tags should follow specification RFC5646: |
| http://tools.ietf.org/html/rfc5646 |
| 2.1.1. Formatting of Language Tags |
| At all times, language tags and their subtags, including private use |
| and extensions, are to be treated as case insensitive: there exist |
| conventions for the capitalization of some of the subtags, but these |
| MUST NOT be taken to carry meaning. |
| "<pre>Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation." |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.setPOSIXLocale("en_US.iso88591"); |
| shouldBe("navigator.language.toLowerCase()", "'en-us'"); |
| <script src="resources/js-test-post.js"></script> |