Changeset 49818 in webkit


Ignore:
Timestamp:
Oct 19, 2009 3:36:31 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-19 Shu Chang <Chang.Shu@nokia.com>

Reviewed by Eric Seidel.

Language tag should include both language and country sub-tags,
case insensitive.
https://bugs.webkit.org/show_bug.cgi?id=30440

  • fast/js/navigator-language-expected.txt:
  • fast/js/navigator-language.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r49811 r49818  
     12009-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
    1122009-10-19  Daniel Bates  <dbates@webkit.org>
    213
  • trunk/LayoutTests/fast/js/navigator-language-expected.txt

    r49675 r49818  
    11Test 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 Tags
    4 
    5    At all times, language tags and their subtags, including private use
    6    and extensions, are to be treated as case insensitive: there exist
    7    conventions for the capitalization of some of the subtags, but these
    8    MUST NOT be taken to carry meaning.
    92On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
    103
    114
    12 PASS navigator.language.substring(0,2) is 'en'
     5PASS navigator.language.toLowerCase() is 'en-us'
    136PASS successfullyParsed is true
    147
  • trunk/LayoutTests/fast/js/navigator-language.html

    r49675 r49818  
    88<p id="description"></p>
    99<div id="console"></div>
     10<!--
     11Language tags should follow specification RFC5646:
     12http://tools.ietf.org/html/rfc5646
     132.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-->
    1020<script>
    1121description(
    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."
    2023);
    2124
     
    2528}
    2629
    27 shouldBe("navigator.language.substring(0,2)", "'en'");
     30shouldBe("navigator.language.toLowerCase()", "'en-us'");
    2831
    2932var successfullyParsed = true;
Note: See TracChangeset for help on using the changeset viewer.