Bug 138581 - Test that complex and fast text codepaths measure the same width
Summary: Test that complex and fast text codepaths measure the same width
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 14:54 PST by Myles C. Maxfield
Modified: 2014-11-10 17:37 PST (History)
8 users (show)

See Also:


Attachments
Patch (2.21 KB, patch)
2014-11-10 14:55 PST, Myles C. Maxfield
no flags 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 2014-11-10 14:54:15 PST
Test that complext and fast text codepaths measure the same width
Comment 1 Myles C. Maxfield 2014-11-10 14:55:01 PST
Created attachment 241310 [details]
Patch
Comment 2 mitz 2014-11-10 15:12:59 PST
I suspect that this test would have passed even with a change such as the one introduced by <http://trac.webkit.org/r175813>, because tests run in an environment where kerning and ligatures are disabled by default.

Another good way to test that the two code paths agree is to use the --complex-text option of run-webkit-tests.
Comment 3 Myles C. Maxfield 2014-11-10 15:37:51 PST
You're right; the test passes.

This whole "not testing what we ship" thing is pretty terrible.
Comment 4 Simon Fraser (smfr) 2014-11-10 15:38:29 PST
Should we add a way that a test can opt into the complex text path?
Comment 5 Myles C. Maxfield 2014-11-10 16:12:02 PST
This isn't actually about the fast vs slow code paths, it's about how kerning and ligatures are turned off. Instead of opting in, I think it's time we enabled K&L for all tests by default.
Comment 6 mitz 2014-11-10 16:46:06 PST
(In reply to comment #5)
> This isn't actually about the fast vs slow code paths, it's about how
> kerning and ligatures are turned off. Instead of opting in, I think it's
> time we enabled K&L for all tests by default.

I agree.

(Note that we do have some tests that enable kerning and/or ligatures using the relevant CSS properties, and we even have some tests that force the complex code path to be taken).
Comment 7 WebKit Commit Bot 2014-11-10 17:37:20 PST
Comment on attachment 241310 [details]
Patch

Clearing flags on attachment: 241310

Committed r175843: <http://trac.webkit.org/changeset/175843>
Comment 8 WebKit Commit Bot 2014-11-10 17:37:24 PST
All reviewed patches have been landed.  Closing bug.