Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(659)

Issue 110313004: Change font-weight-1 test to use webfonts (Closed)

Created:
6 years, 11 months ago by eae
Modified:
6 years, 11 months ago
Reviewers:
Dirk Pranke, Nico, eseidel
CC:
blink-reviews, Kunihiko Sakamoto
Visibility:
Public.

Description

Change font-weight-1 test to use webfonts Change the font-weight-1 test to use web fonts instead of embedding the font files into DRT. This fixes the test flakiness, makes it run on all platforms and avoids the need to includ it into DRT. BUG=243520, 318515 R=dpranke@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164460

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -11 lines) Patch
M LayoutTests/TestExpectations View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/css/font-weight-1.html View 3 chunks +53 lines, -1 line 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher100.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher200.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher300.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher400.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher500.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher600.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher700.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher800.ttf View Binary file 0 comments Download
A + LayoutTests/resources/WebKitWeightWatcher900.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher100.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher200.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher300.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher400.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher500.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher600.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher700.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher800.ttf View Binary file 0 comments Download
D Source/testing/data/fonts/WebKitWeightWatcher900.ttf View Binary file 0 comments Download
M Source/testing/testing.gyp View 1 chunk +0 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
eae
6 years, 11 months ago (2014-01-03 19:55:46 UTC) #1
eae
+thakis,eseidel
6 years, 11 months ago (2014-01-03 20:47:58 UTC) #2
Nico
lgtm Nice!
6 years, 11 months ago (2014-01-03 21:05:17 UTC) #3
eae
Thanks!
6 years, 11 months ago (2014-01-03 21:06:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eae@chromium.org/110313004/1
6 years, 11 months ago (2014-01-03 21:06:14 UTC) #5
commit-bot: I haz the power
Change committed as 164460
6 years, 11 months ago (2014-01-03 21:11:45 UTC) #6
eseidel
LOVE IT. LGTM
6 years, 11 months ago (2014-01-03 23:33:40 UTC) #7
eseidel
IMO, we should consider removing Ahem from the binary as well and instead just have ...
6 years, 11 months ago (2014-01-03 23:35:38 UTC) #8
Dirk Pranke
On 2014/01/03 23:35:38, eseidel wrote: > IMO, we should consider removing Ahem from the binary ...
6 years, 11 months ago (2014-01-04 01:43:10 UTC) #9
eseidel
The web as a whole seems to be moving away from the IE "web safe" ...
6 years, 11 months ago (2014-01-04 02:13:39 UTC) #10
Dirk Pranke
6 years, 11 months ago (2014-01-04 02:31:12 UTC) #11
Message was sent while issue was closed.
On 2014/01/04 02:13:39, eseidel wrote:
> The web as a whole seems to be moving away from the IE "web safe" font set and
> towards Web Fonts.  Seems our testing should as well, no?

Well, insofar as we need tests for webfonts, sure :)

The problem I'm looking to solve is the fact that we have pixel test baselines
that vary depending on the operating system (and version) you're running. Given
that we have lots and lots of tests that either assume particular fonts (e.g.,
Arial) are installed, or don't specify any particular fonts at all, this means
that we are either always going to be at the mercy of the OS, or we need to fix
something.

We could modify *every* test to specify the fonts we need, but doing that across
the 30k tests we currently have seems tantamount to hard-coding a list
somewhere. I could see an argument that doing this via explicit webfonts in the
test makes things, well, explicit. My main concern here would then be that
*always* using webfonts might slow things down, but that's probably easy to
test. 

Of course, we'd still want some tests that tested *not* using webfonts, and then
you'd still have the problem (just perhaps with a lot fewer baselines).

> That said, I don't have super strong opinions.  I do agree that we should be
> using a consistent test environment, I'm just not sure it should include fonts
> which the majority of users won't have installed, but maybe Ahem deserves its
> special case. :)

I would agree with this; Ahem is a special case because it is used so broadly in
the tests (both blink-specific ones and the W3C's). However, I don't actually
tend to like tests that use Ahem, and so maybe (?) we can deprecate it over time
...

Powered by Google App Engine
This is Rietveld 408576698