Bug 1533462 - Execute the deferred font-info loader immediately when running reftests, to avoid intermittent issues due to async completion triggering an extra reflow mid-test. r=jwatt

Differential Revision: https://phabricator.services.mozilla.com/D87194
This commit is contained in:
Jonathan Kew 2020-08-21 14:28:50 +00:00
Родитель 755977bdb4
Коммит 936d5b55b1
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -1,9 +1,3 @@
# Run the font loader eagerly: this also ensures we will eagerly load localized
# family names when looking up a requested font-family. Otherwise, tests here
# may fail if they're running too soon after browser startup, and localized
# names have not yet been read. (See bug 1439937.)
defaults pref(gfx.font_loader.delay,0)
== CSS21-t1502-no-inherited-font-family.xhtml CSS21-t1502-no-inherited-font-family-ref.xhtml
# tests for bug 1394311 (case-insensitive lang tag processing)

Просмотреть файл

@ -393,6 +393,10 @@ class RefTest(object):
prefs['reftest.logLevel'] = options.log_tbpl_level or 'info'
prefs['reftest.suite'] = options.suite
prefs['gfx.font_rendering.ahem_antialias_none'] = True
# Run the "deferred" font-loader immediately, because if it finishes
# mid-test, the extra reflow that is triggered can disrupt the test.
prefs['gfx.font_loader.delay'] = 0
prefs['gfx.font_loader.interval'] = 0
# Disable dark scrollbars because it's semi-transparent.
prefs['widget.disable-dark-scrollbar'] = True
prefs['reftest.isCoverageBuild'] = mozinfo.info.get('ccov', False)