Bug 149777 - Test font-variant-* and font-feature-settings with mocked preinstalled fonts
Summary: Test font-variant-* and font-feature-settings with mocked preinstalled fonts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks: 149779
  Show dependency treegraph
 
Reported: 2015-10-02 16:58 PDT by Myles C. Maxfield
Modified: 2015-10-14 09:45 PDT (History)
8 users (show)

See Also:


Attachments
Patch (655.24 KB, patch)
2015-10-10 20:54 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (771.05 KB, application/zip)
2015-10-10 21:27 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (827.50 KB, application/zip)
2015-10-10 21:32 PDT, Build Bot
no flags Details
Patch (658.14 KB, patch)
2015-10-10 22:20 PDT, Myles C. Maxfield
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2015-10-02 16:58:56 PDT
We should use the same mechanism that we use for WebKitWeightWatcher to mock installing a font for tests. Then, we can test font features on preinstalled fonts.
Comment 1 Radar WebKit Bug Importer 2015-10-02 17:07:22 PDT
<rdar://problem/22959758>
Comment 2 Myles C. Maxfield 2015-10-10 20:54:20 PDT
Created attachment 262845 [details]
Patch
Comment 3 Build Bot 2015-10-10 21:27:11 PDT
Comment on attachment 262845 [details]
Patch

Attachment 262845 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/266740

New failing tests:
css3/font-variant-all.html
Comment 4 Build Bot 2015-10-10 21:27:15 PDT
Created attachment 262847 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Build Bot 2015-10-10 21:32:54 PDT
Comment on attachment 262845 [details]
Patch

Attachment 262845 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/266746

New failing tests:
css3/font-variant-all.html
Comment 6 Build Bot 2015-10-10 21:32:57 PDT
Created attachment 262848 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Myles C. Maxfield 2015-10-10 22:02:32 PDT
I need to update TestExpectations.
Comment 8 Myles C. Maxfield 2015-10-10 22:20:33 PDT
Created attachment 262851 [details]
Patch
Comment 9 Simon Fraser (smfr) 2015-10-11 10:48:02 PDT
Comment on attachment 262851 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=262851&action=review

> Tools/FontWithFeatures/FontWithFeatures/main.cpp:129
> -    std::ofstream outputFile("/Volumes/Data/home/mmaxfield/tmp/output.ttf", std::ios::out | std::ios::binary);
> +    std::ofstream outputFile("/Volumes/Data/home/mmaxfield/src/WebKit/OpenSource/LayoutTests/css3/resources/FontWithFeatures.ttf", std::ios::out | std::ios::binary);

It's wrong to have a hard-coded path that only works on your machine here.
Comment 10 Myles C. Maxfield 2015-10-11 13:24:01 PDT
Committed r190848: <http://trac.webkit.org/changeset/190848>
Comment 11 Daniel Bates 2015-10-13 20:24:22 PDT
(In reply to comment #10)
> Committed r190848: <http://trac.webkit.org/changeset/190848>

This changes prevents us from running tests as iOS DumpRenderTree exits with error "Failed to create CGFontRef for the FontWithFeaturesTTF font":

<https://build.webkit.org/results/Apple%20iOS%209%20Simulator%20Release%20WK1%20(Tests)/r191029%20(324)/results.html>
Comment 12 Myles C. Maxfield 2015-10-14 09:45:34 PDT
(In reply to comment #11)
> (In reply to comment #10)
> > Committed r190848: <http://trac.webkit.org/changeset/190848>
> 
> This changes prevents us from running tests as iOS DumpRenderTree exits with
> error "Failed to create CGFontRef for the FontWithFeaturesTTF font":
> 
> <https://build.webkit.org/results/
> Apple%20iOS%209%20Simulator%20Release%20WK1%20(Tests)/r191029%20(324)/
> results.html>

http://trac.webkit.org/changeset/191032 fixes this.