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

Issue 1238753005: Add unit tests for FontPlatformData::hasSpaceInLigaturesOrKerning (Closed)

Created:
5 years, 5 months ago by eae
Modified:
5 years, 5 months ago
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add unit tests for FontPlatformData::hasSpaceInLigaturesOrKerning Add a set of unit tests for the hasSpaceInLigaturesOrKerning method that verifies that the correct value is returned for a font that has space in either the GPOS or GSUB tables vs for one that does not. Also tests that the check is bypassed and false is returned if kerning and ligatures are both disabled. Finally, it fixes the failure mode in that the method now returns false in cases where the font tables cannot be accessed. R=drott@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199059

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix win compiler error #

Patch Set 3 : #

Patch Set 4 : Address review comments #

Patch Set 5 : w/TestExpectations #

Patch Set 6 : Rebase w/HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -17 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 2 chunks +15 lines, -1 line 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M Source/platform/fonts/FontPlatformData.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
A + Source/platform/fonts/FontPlatformDataTest.cpp View 2 chunks +32 lines, -12 lines 0 comments Download
A Source/platform/fonts/TestFontSelector.h View 1 2 1 chunk +102 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
eae
5 years, 5 months ago (2015-07-15 23:24:19 UTC) #4
leviw_travelin_and_unemployed
lgtm https://codereview.chromium.org/1238753005/diff/20001/Source/platform/blink_platform.gypi File Source/platform/blink_platform.gypi (right): https://codereview.chromium.org/1238753005/diff/20001/Source/platform/blink_platform.gypi#newcode1005 Source/platform/blink_platform.gypi:1005: # NOTE: These are legacy unit tests and ...
5 years, 5 months ago (2015-07-16 00:01:39 UTC) #5
eae
On 2015/07/16 00:01:39, leviw wrote: > lgtm > > https://codereview.chromium.org/1238753005/diff/20001/Source/platform/blink_platform.gypi > File Source/platform/blink_platform.gypi (right): > ...
5 years, 5 months ago (2015-07-16 00:08:58 UTC) #6
leviw_travelin_and_unemployed
On 2015/07/16 at 00:08:58, eae wrote: > On 2015/07/16 00:01:39, leviw wrote: > > lgtm ...
5 years, 5 months ago (2015-07-16 00:16:09 UTC) #7
eae
https://codereview.chromium.org/1238753005/diff/20001/Source/platform/blink_platform.gypi File Source/platform/blink_platform.gypi (right): https://codereview.chromium.org/1238753005/diff/20001/Source/platform/blink_platform.gypi#newcode1005 Source/platform/blink_platform.gypi:1005: # NOTE: These are legacy unit tests and tests ...
5 years, 5 months ago (2015-07-16 00:21:55 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1238753005/80001
5 years, 5 months ago (2015-07-16 17:04:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1238753005/100001
5 years, 5 months ago (2015-07-16 17:56:44 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/63147)
5 years, 5 months ago (2015-07-16 17:59:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1238753005/120001
5 years, 5 months ago (2015-07-16 18:36:24 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199059
5 years, 5 months ago (2015-07-16 21:00:41 UTC) #21
Julien - ping for review
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1240963002/ by jchaffraix@chromium.org. ...
5 years, 5 months ago (2015-07-17 01:36:28 UTC) #22
Julien - ping for review
5 years, 5 months ago (2015-07-17 01:37:03 UTC) #23
Message was sent while issue was closed.
On 2015/07/17 at 01:36:28, Julien Chaffraix - PST wrote:
> A revert of this CL (patchset #6 id:120001) has been created in
https://codereview.chromium.org/1240963002/ by jchaffraix@chromium.org.
> 
> The reason for reverting is: The new tests are hitting some ASSERT in debug:
> 
>
********************************************************************************
> C   87.837s Main  [CRASH]
FontPlatformDataTest.AhemHasNoSpaceInLigaturesOrKerning:
> C   87.837s Main  ASSERTION FAILED: m_ptr
> C   87.837s Main  ../../third_party/WebKit/Source/wtf/OwnPtr.h(66) :
WTF::OwnPtr<T>::ValueType* WTF::OwnPtr<T>::operator->() const [with T =
blink::FontCustomPlatformData; WTF::OwnPtr<T>::PtrType =
blink::FontCustomPlatformData*; WTF::OwnPtr<T>::ValueType =
blink::FontCustomPlatformData]
> C   87.837s Main  
> C   87.837s Main  [CRASH]
FontPlatformDataTest.AhemSpaceLigatureHasNoSpaceWithoutFontFeatures:
> C   87.837s Main  ASSERTION FAILED: m_ptr
> C   87.837s Main  ../../third_party/WebKit/Source/wtf/OwnPtr.h(66) :
WTF::OwnPtr<T>::ValueType* WTF::OwnPtr<T>::operator->() const [with T =
blink::FontCustomPlatformData; WTF::OwnPtr<T>::PtrType =
blink::FontCustomPlatformData*; WTF::OwnPtr<T>::ValueType =
blink::FontCustomPlatformData]
> C   87.837s Main  
> C   87.837s Main  [CRASH]
FontPlatformDataTest.AhemSpaceLigatureHasSpaceInLigaturesOrKerning:
> C   87.837s Main  ASSERTION FAILED: m_ptr
> C   87.838s Main  ../../third_party/WebKit/Source/wtf/OwnPtr.h(66) :
WTF::OwnPtr<T>::ValueType* WTF::OwnPtr<T>::operator->() const [with T =
blink::FontCustomPlatformData; WTF::OwnPtr<T>::PtrType =
blink::FontCustomPlatformData*; WTF::OwnPtr<T>::ValueType =
blink::FontCustomPlatformData]
> C   87.838s Main 
********************************************************************************
> 
> See the full output in
>
https://build.chromium.org/p/chromium.webkit/builders/Android%20Tests%20%28db....

I should add that this is only on Android, it was not seen on another platform.

Powered by Google App Engine
This is Rietveld 408576698