Changeset 166458 in webkit


Ignore:
Timestamp:
Mar 29, 2014 10:57:40 PM (10 years ago)
Author:
ap@apple.com
Message:

Update WebKit1.StringTruncator for Mountain Lion.

  • TestWebKitAPI/Tests/mac/StringTruncator.mm: Looks like one subtest was failing

due to different font metrics on 10.8.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r166448 r166458  
     12014-03-29  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Update WebKit1.StringTruncator for Mountain Lion.
     4
     5        * TestWebKitAPI/Tests/mac/StringTruncator.mm: Looks like one subtest was failing
     6        due to different font metrics on 10.8.
     7
    182014-03-28  Darin Adler  <darin@apple.com>
    29
  • trunk/Tools/TestWebKitAPI/Tests/mac/StringTruncator.mm

    r166448 r166458  
    3434{
    3535    @autoreleasepool {
     36#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
    3637        EXPECT_STREQ([[WebStringTruncator centerTruncateString:@"abcdefghijklmnopqrstuvwxyz" toWidth:100 withFont:[NSFont fontWithName:@"Helvetica" size:12]] UTF8String], "abcdef…tuvwxyz");
     38#else
     39        EXPECT_STREQ([[WebStringTruncator centerTruncateString:@"abcdefghijklmnopqrstuvwxyz" toWidth:100 withFont:[NSFont fontWithName:@"Helvetica" size:12]] UTF8String], "abcdefg…tuvwxyz");
     40#endif
    3741        EXPECT_STREQ([[WebStringTruncator centerTruncateString:@"abcdefghijklmnopqrstuvwxyz" toWidth:100] UTF8String], "abcde…uvwxyz");
    3842        EXPECT_STREQ([[WebStringTruncator rightTruncateString:@"abcdefghijklmnopqrstuvwxyz" toWidth:100 withFont:[NSFont fontWithName:@"Helvetica" size:12]] UTF8String], "abcdefghijklmno…");
Note: See TracChangeset for help on using the changeset viewer.