Bug 1622088 - Part 3: Add startup_about_home_paint_cached Talos test. r=davehunt,perftest-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D71794
This commit is contained in:
Mike Conley 2020-05-05 21:03:52 +00:00
Родитель 078d4c6940
Коммит cef57051cc
2 изменённых файлов: 24 добавлений и 1 удалений

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

@ -13,7 +13,7 @@
"tests": ["tart_flex", "ts_paint_flex"]
},
"other": {
"tests": ["a11yr", "ts_paint", "twinopen", "sessionrestore", "sessionrestore_no_auto_restore", "tabpaint", "cpstartup", "startup_about_home_paint", "pdfpaint"]
"tests": ["a11yr", "ts_paint", "twinopen", "sessionrestore", "sessionrestore_no_auto_restore", "tabpaint", "cpstartup", "startup_about_home_paint", "startup_about_home_paint_cached", "pdfpaint"]
},
"sessionrestore-many-windows": {
"tests": ["sessionrestore_many_windows"]

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

@ -187,10 +187,33 @@ class ts_paint_flex(ts_paint):
@register_test()
class startup_about_home_paint(ts_paint):
"""
Tests loading about:home on startup with the about:home startup cache
disabled, to more accurately simulate startup when the cache does not
exist.
"""
url = None
cycles = 20
extensions = ['${talos}/startup_test/startup_about_home_paint/addon']
tpmanifest = '${talos}/startup_test/startup_about_home_paint/startup_about_home_paint.manifest'
preferences = {
'browser.startup.homepage.abouthome_cache.enabled': False,
}
@register_test()
class startup_about_home_paint_cached(ts_paint):
"""
Tests loading about:home on startup with the about:home startup cache
enabled.
"""
url = None
cycles = 20
extensions = ['${talos}/startup_test/startup_about_home_paint/addon']
tpmanifest = '${talos}/startup_test/startup_about_home_paint/startup_about_home_paint.manifest'
preferences = {
'browser.startup.homepage.abouthome_cache.enabled': True,
}
@register_test()