⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 245671 in webkit


Ignore:
Timestamp:
May 22, 2019, 9:12:36 PM (7 years ago)
Author:
mmaxfield@apple.com
Message:

[Mac] Add API test to make sure the system font is drawn just like in native code
https://bugs.webkit.org/show_bug.cgi?id=198010

Reviewed by Daniel Bates.

We can compare the width of using font-family:system-ui to a CTLine.

  • TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
  • TestWebKitAPI/Tests/WebKitCocoa/TextWidth.html: Added.
  • TestWebKitAPI/Tests/WebKitCocoa/TextWidth.mm: Added.

(TEST):

Location:
trunk/Tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r245665 r245671  
     12019-05-22  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [Mac] Add API test to make sure the system font is drawn just like in native code
     4        https://bugs.webkit.org/show_bug.cgi?id=198010
     5
     6        Reviewed by Daniel Bates.
     7
     8        We can compare the width of using font-family:system-ui to a CTLine.
     9
     10        * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
     11        * TestWebKitAPI/Tests/WebKitCocoa/TextWidth.html: Added.
     12        * TestWebKitAPI/Tests/WebKitCocoa/TextWidth.mm: Added.
     13        (TEST):
     14
    1152019-05-22  Nikita Vasilyev  <nvasilyev@apple.com>
    216
  • trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj

    r245540 r245671  
    759759                C0BD669F131D3CFF00E18F2A /* ResponsivenessTimerDoesntFireEarly_Bundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C0BD669E131D3CFF00E18F2A /* ResponsivenessTimerDoesntFireEarly_Bundle.cpp */; };
    760760                C0C5D3C61459912900A802A6 /* GetBackingScaleFactor_Bundle.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0C5D3BD14598B6F00A802A6 /* GetBackingScaleFactor_Bundle.mm */; };
     761                C20F88A72295B96700D610FA /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C20F88A62295B96700D610FA /* CoreText.framework */; };
     762                C22FA32B228F8708009D7988 /* TextWidth.mm in Sources */ = {isa = PBXBuildFile; fileRef = C22FA32A228F8708009D7988 /* TextWidth.mm */; };
     763                C22FA32D228F8AEB009D7988 /* TextWidth.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = C22FA32C228F877A009D7988 /* TextWidth.html */; };
    761764                C25CCA061E51380B0026CB8A /* LineBreaking.mm in Sources */ = {isa = PBXBuildFile; fileRef = C25CCA051E51380B0026CB8A /* LineBreaking.mm */; };
    762765                C25CCA0B1E5140C10026CB8A /* LineBreaking.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = C25CCA0A1E513F490026CB8A /* LineBreaking.html */; };
     
    13181321                                F44C7A0520FAAE3C0014478C /* text-with-deferred-script.html in Copy Resources */,
    13191322                                F41AB9AA1EF4696B0083FA08 /* textarea-to-input.html in Copy Resources */,
     1323                                C22FA32D228F8AEB009D7988 /* TextWidth.html in Copy Resources */,
    13201324                                F4451C761EB8FD890020C5DA /* two-paragraph-contenteditable.html in Copy Resources */,
    13211325                                C540F784152E5A9A00A40C8C /* verboseMarkup.html in Copy Resources */,
     
    21112115                C0C5D3BD14598B6F00A802A6 /* GetBackingScaleFactor_Bundle.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = GetBackingScaleFactor_Bundle.mm; sourceTree = "<group>"; };
    21122116                C1D8EE212028E8E3008EB141 /* WebProcessTerminate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebProcessTerminate.mm; sourceTree = "<group>"; };
     2117                C20F88A62295B96700D610FA /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
     2118                C22FA32A228F8708009D7988 /* TextWidth.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = TextWidth.mm; sourceTree = "<group>"; };
     2119                C22FA32C228F877A009D7988 /* TextWidth.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = TextWidth.html; sourceTree = "<group>"; };
    21132120                C25CCA051E51380B0026CB8A /* LineBreaking.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = LineBreaking.mm; path = ../WebCore/LineBreaking.mm; sourceTree = "<group>"; };
    21142121                C25CCA0A1E513F490026CB8A /* LineBreaking.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = LineBreaking.html; sourceTree = "<group>"; };
     
    24082415                                7A010BCB1D877C0500EDE72A /* CoreGraphics.framework in Frameworks */,
    24092416                                634910E01E9D3FF300880309 /* CoreLocation.framework in Frameworks */,
     2417                                C20F88A72295B96700D610FA /* CoreText.framework in Frameworks */,
    24102418                                CDA3159D1ED5643F009F60D3 /* IOKit.framework in Frameworks */,
    24112419                                5CFACF63226F73C60056C7D0 /* libboringssl.a in Frameworks */,
     
    27012709                                F4CD74C720FDB49600DE3794 /* TestURLSchemeHandler.h */,
    27022710                                F4CD74C820FDB49600DE3794 /* TestURLSchemeHandler.mm */,
     2711                                C22FA32A228F8708009D7988 /* TextWidth.mm */,
    27032712                                5CB40B4D1F4B98BE007DC7B9 /* UIDelegate.mm */,
    27042713                                7CC3E1FA197E234100BE6252 /* UserContentController.mm */,
     
    28692878                                7A010BCA1D877C0500EDE72A /* CoreGraphics.framework */,
    28702879                                634910DF1E9D3FF300880309 /* CoreLocation.framework */,
     2880                                C20F88A62295B96700D610FA /* CoreText.framework */,
    28712881                                0F4FFAA01ED3D0DE00F7111F /* ImageIO.framework */,
    28722882                                CDA3159C1ED5643F009F60D3 /* IOKit.framework */,
     
    30963106                                F44C7A0420FAAE320014478C /* text-with-deferred-script.html */,
    30973107                                F41AB9951EF4692C0083FA08 /* textarea-to-input.html */,
     3108                                C22FA32C228F877A009D7988 /* TextWidth.html */,
    30983109                                F4451C751EB8FD7C0020C5DA /* two-paragraph-contenteditable.html */,
    30993110                                CD57779B211CE6CE001B371E /* video-with-audio-and-web-audio.html */,
     
    44064417                                93E6193B1F931B3A00AF245E /* TextCodec.cpp in Sources */,
    44074418                                CE3524F91B1441C40028A7C5 /* TextFieldDidBeginAndEndEditing.cpp in Sources */,
     4419                                C22FA32B228F8708009D7988 /* TextWidth.mm in Sources */,
    44084420                                7CCE7EDD1A411A9200447C4C /* TimeRanges.cpp in Sources */,
    44094421                                7CCE7ED31A411A7E00447C4C /* TypingStyleCrash.mm in Sources */,
Note: See TracChangeset for help on using the changeset viewer.