[Mac] Add API test to make sure the system font is drawn just like in native code
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 May 2019 04:12:36 +0000 (04:12 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 May 2019 04:12:36 +0000 (04:12 +0000)
commitf9c938cbeb2b9c388634466ba7e2bced89ab71b5
tree402d56f951e1beebe2066a8799b3f13ba49c406c
parent478c9fe8c82d7beffc1f097bf690085be1022771
[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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
Tools/TestWebKitAPI/Tests/WebKitCocoa/TextWidth.html [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/WebKitCocoa/TextWidth.mm [new file with mode: 0644]