Changeset 13740 in webkit for trunk/JavaScriptCore/tests


Ignore:
Timestamp:
Apr 8, 2006, 10:21:52 AM (19 years ago)
Author:
ap
Message:

Reviewed by Darin.

Test: fast/js/string-capitalization.html

  • JavaScriptCore.xcodeproj/project.pbxproj: Added KXMLCore::Unicode headers to the project.
  • icu/unicode/putil.h: Added (copied from WebCore).
  • icu/unicode/uiter.h: Ditto.
  • icu/unicode/ustring.h: Ditto.
  • kjs/string_object.cpp: (StringProtoFunc::callAsFunction): Use the new KXMLCore::Unicode::toUpper() and toLower().
  • kjs/ustring.cpp: Removed unused (and evil) UChar::toLower() and toUpper().
  • kjs/ustring.h: Ditto.
  • kxmlcore/unicode/Unicode.h: Corrected capitalization of the word Unicode.
  • kxmlcore/unicode/UnicodeCategory.h: Renamed include guard macro to match file name.
  • kxmlcore/unicode/icu/UnicodeIcu.h: (KXMLCore::Unicode::toLower): Work on strings, not individual characters. Use ICU root locale. (KXMLCore::Unicode::toUpper): Ditto. (KXMLCore::Unicode::isFormatChar): Use int32_t, which can hold a complete code point. (KXMLCore::Unicode::isSeparatorSpace): Ditto. (KXMLCore::Unicode::category): Ditto.
  • kxmlcore/unicode/qt4/UnicodeQt4.h: (KXMLCore::Unicode::toLower): Work on strings, not individual characters. (KXMLCore::Unicode::toUpper): Ditto. (KXMLCore::Unicode::isFormatChar): Use int32_t, which can hold a complete code point. (KXMLCore::Unicode::isSeparatorSpace): Ditto. (KXMLCore::Unicode::category): Ditto.
  • tests/mozilla/ecma/String/15.5.4.12-1.js: Corrected expected results.
  • tests/mozilla/ecma/String/15.5.4.12-5.js: Corrected expected results.
Location:
trunk/JavaScriptCore/tests/mozilla/ecma/String
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/tests/mozilla/ecma/String/15.5.4.12-1.js

    r11995 r13740  
    177177    }
    178178
     179    // LATIN SMALL LETTER N PRECEDED BY APOSTROPHE, uppercase takes two code points
     180    if (c == 0x0149) {
     181        u[0] = 0x02bc;
     182        u[1] = c;
     183        return u;
     184    }
     185   
    179186    if ( (c >= 0x0139 && c < 0x0149) || (c > 0x0178 && c < 0x017F) ) {
    180187        if ( c % 2 == 1 ) {
     
    270277    if ( c >= 0x0561 && c < 0x0587 ) {
    271278        u[0] = c - 48;
     279        u[1] = c;
     280        return u;
     281    }
     282    if (c == 0x0587) {
     283        u[0] = 0x0535;
    272284        u[1] = c;
    273285        return u;
  • trunk/JavaScriptCore/tests/mozilla/ecma/String/15.5.4.12-5.js

    r11995 r13740  
    173173    }
    174174
     175    // LATIN SMALL LETTER N PRECEDED BY APOSTROPHE, uppercase takes two code points
     176    if (c == 0x0149) {
     177        u[0] = 0x02bc;
     178        u[1] = c;
     179        return u;
     180    }
     181   
    175182    if ( (c >= 0x0139 && c < 0x0149) || (c > 0x0178 && c < 0x017F) ) {
    176183        if ( c % 2 == 1 ) {
     
    266273    if ( c >= 0x0561 && c < 0x0587 ) {
    267274        u[0] = c - 48;
     275        u[1] = c;
     276        return u;
     277    }
     278    if (c == 0x0587) {
     279        u[0] = 0x0535;
    268280        u[1] = c;
    269281        return u;
Note: See TracChangeset for help on using the changeset viewer.