Changeset 49818 in webkit
- Timestamp:
- Oct 19, 2009 3:36:31 PM (15 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r49811 r49818 1 2009-10-19 Shu Chang <Chang.Shu@nokia.com> 2 3 Reviewed by Eric Seidel. 4 5 Language tag should include both language and country sub-tags, 6 case insensitive. 7 https://bugs.webkit.org/show_bug.cgi?id=30440 8 9 * fast/js/navigator-language-expected.txt: 10 * fast/js/navigator-language.html: 11 1 12 2009-10-19 Daniel Bates <dbates@webkit.org> 2 13 -
trunk/LayoutTests/fast/js/navigator-language-expected.txt
r49675 r49818 1 1 Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation. 2 Language tags should follow the specification below:3 2.1.1. Formatting of Language Tags4 5 At all times, language tags and their subtags, including private use6 and extensions, are to be treated as case insensitive: there exist7 conventions for the capitalization of some of the subtags, but these8 MUST NOT be taken to carry meaning.9 2 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 10 3 11 4 12 PASS navigator.language. substring(0,2) is 'en'5 PASS navigator.language.toLowerCase() is 'en-us' 13 6 PASS successfullyParsed is true 14 7 -
trunk/LayoutTests/fast/js/navigator-language.html
r49675 r49818 8 8 <p id="description"></p> 9 9 <div id="console"></div> 10 <!-- 11 Language tags should follow specification RFC5646: 12 http://tools.ietf.org/html/rfc5646 13 2.1.1. Formatting of Language Tags 14 15 At all times, language tags and their subtags, including private use 16 and extensions, are to be treated as case insensitive: there exist 17 conventions for the capitalization of some of the subtags, but these 18 MUST NOT be taken to carry meaning. 19 --> 10 20 <script> 11 21 description( 12 "<pre>Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation.\n\ 13 Language tags should follow the specification below:\n\ 14 2.1.1. Formatting of Language Tags\n\ 15 \n\ 16 At all times, language tags and their subtags, including private use\n\ 17 and extensions, are to be treated as case insensitive: there exist\n\ 18 conventions for the capitalization of some of the subtags, but these\n\ 19 MUST NOT be taken to carry meaning.</pre>" 22 "<pre>Test for bug 29653: [Qt] Qt-based browser fails to show the right language translation." 20 23 ); 21 24 … … 25 28 } 26 29 27 shouldBe("navigator.language. substring(0,2)", "'en'");30 shouldBe("navigator.language.toLowerCase()", "'en-us'"); 28 31 29 32 var successfullyParsed = true;
Note: See TracChangeset
for help on using the changeset viewer.