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

Issue 2507363003: MacViews: Fix flaky label selection tests. (Closed)

Created:
4 years, 1 month ago by karandeepb
Modified:
4 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Fix flaky label selection tests. r431107 enabled text selection related tests on Mac by using RenderTextHarfBuzz for these tests. It did this by appending the kEnableHarfBuzzRenderText switch to the list of command line switches. However RenderText::CreateInstance() assigns the result of evaluating the presence of this switch to the static variable |use_native|. As a result, if another test has already initialized the variable |use_native| to true, appending the kEnableHarfBuzzRenderText switch has no effect. This causes the Label selection tests to fail on Mac. To fix, make the |use_native| variable non-static. BUG=666162 Committed: https://crrev.com/50221c896a243c90466c5bed3ad83008198ea2b5 Cr-Commit-Position: refs/heads/master@{#433123}

Patch Set 1 : -- #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M ui/gfx/render_text.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
karandeepb
PTAL msw@. From what I can see, we don't generally assign the result of evaluating ...
4 years, 1 month ago (2016-11-17 02:36:34 UTC) #6
msw
hmmm, lgtm i guess, but this will slow down RenderText creation in production...
4 years, 1 month ago (2016-11-17 18:33:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2507363003/20001
4 years, 1 month ago (2016-11-17 23:45:07 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 1 month ago (2016-11-18 05:41:43 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 05:45:31 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/50221c896a243c90466c5bed3ad83008198ea2b5
Cr-Commit-Position: refs/heads/master@{#433123}

Powered by Google App Engine
This is Rietveld 408576698