Bug 1544612 - remove tpaint. r=rwood

remove outdated talos test, tpaint

Differential Revision: https://phabricator.services.mozilla.com/D27689

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Joel Maher 2019-04-17 10:43:29 +00:00
Родитель d233bde9f0
Коммит 4ba8f9a586
5 изменённых файлов: 1 добавлений и 126 удалений

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

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

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

@ -270,26 +270,6 @@ class QuantumPageloadTest(PageloaderTest):
fnbpaint = True
@register_test()
class tpaint(PageloaderTest):
"""
Tests the amount of time it takes the open a new window. This test does
not include startup time. Multiple test windows are opened in succession,
results reported are the average amount of time required to create and
display a window in the running instance of the browser.
(Measures ctrl-n performance.)
"""
tpmanifest = '${talos}/tests/tpaint/tpaint.manifest'
tppagecycles = 20
timeout = 300
gecko_profile_interval = 1
gecko_profile_entries = 2000000
tpmozafterpaint = True
filters = filter.ignore_first.prepare(5) + filter.median.prepare()
unit = 'ms'
preferences = {'security.data_uri.block_toplevel_data_uri_navigations': False}
@register_test()
class twinopen(PageloaderTest):
"""

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

@ -1,87 +0,0 @@
<html>
<meta charset='utf-8'>
<script language="JavaScript" type="text/javascript" src="../../scripts/MozillaFileLogger.js"></script>
<script language="JavaScript" src="resource://talos-powers/TalosContentProfiler.js"></script>
<script language="JavaScript" type="text/javascript" src="resource://talos-powers/TalosPowersContent.js"></script>
<script>
var OPENER_DELAY = 1000; // ms delay between tests
var kid, kidStartTime, kidEndTime, openTime;
var auto = document.location.search.split("=")[1]; // ?auto=1
/*
* tpaint -- measures the amount of time between opening a new window
* its contents being painted.
*
* XXX When run manually, outside of automation, need to:
* 1) allow popups
* 2) set dom.send_after_paint_to_content = true
* 3) set browser.link.open_newwindow = 2 (else it opens in a tab)
*/
async function startTest() {
await TalosContentProfiler.resume("tpaint", true);
scheduleNextWindow();
}
function scheduleNextWindow() {
TalosPowersContent.forceCCAndGC();
window.setTimeout(openWindow, OPENER_DELAY);
}
function calcMedian( numbers ) {
// Avoid changing the original array.
var sortedNumbers = Array.from(numbers);
sortedNumbers.sort( function(a, b) { return a - b; } );
var n = Math.floor( sortedNumbers.length / 2 );
if (sortedNumbers.length % 2) {
return sortedNumbers[n];
}
return ( sortedNumbers[n - 1] + sortedNumbers[n] ) / 2;
}
async function reportTimes() {
if (window.tpRecordTime)
window.tpRecordTime(openTime);
if (auto) {
dumpLog("openingTime=" + openTime + "\n");
}
}
window.addEventListener("message", childIsOpen);
async function childIsOpen() {
kidEndTime = window.performance.now();
openTime = kidEndTime - kidStartTime;
await TalosContentProfiler.pause("tpaint", true);
window.removeEventListener("message", childIsOpen);
window.setTimeout(reportTimes, 0);
}
/* eslint-disable no-useless-concat */
var kidHTML = "<html><meta charset='utf-8'><script>" +
"var e = 'MozAfterPaint';" +
"function done() {" +
" window.removeEventListener(e, done, true);" +
" window.opener.postMessage({msg: 'childIsOpen'}, '*');" +
" window.close();" +
"}" +
"window.addEventListener(e, done, true);" +
"</" + "script>TPAINT</html>";
/* eslint-enable no-useless-concat */
var kidURI = "data:text/html," + encodeURI(kidHTML);
async function openWindow() {
await TalosContentProfiler.resume("tpaint");
kidStartTime = window.performance.now();
kid = window.open(kidURI);
}
if (auto)
startTest();
</script>
<h2>tpaint runner</h2>
<button onclick="startTest()">Start</button>
</html>

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

@ -1 +0,0 @@
% http://localhost/tests/tpaint/tpaint.html?auto=1

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

@ -201,7 +201,6 @@ class Test_get_config(object):
cls.argv_sessionrestore_many_windows = \
'--activeTests sessionrestore_many_windows -e /some/random/path'.split()
cls.argv_tresize = '--activeTests tresize -e /some/random/path'.split()
cls.argv_tpaint = '--activeTests tpaint -e /some/random/path'.split()
cls.argv_cpstartup = '--activeTests cpstartup -e /some/random/path'.split()
cls.argv_tabpaint = '--activeTests tabpaint -e /some/random/path'.split()
cls.argv_tabswitch = '--activeTests tabswitch -e /some/random/path'.split()
@ -395,22 +394,6 @@ class Test_get_config(object):
assert test_config['filters'] is not None
# assert test_config['unit'] == 'ms'
def test_tpaint_has_expected_attributes(self):
config = get_config(self.argv_tpaint)
test_config = config['tests'][0]
assert test_config['name'] == 'tpaint'
assert test_config['tpcycles'] == 1
assert test_config['tppagecycles'] == 20
assert test_config['timeout'] == 300
assert test_config['gecko_profile_interval'] == 1
assert test_config['gecko_profile_entries'] == 2000000
assert test_config['tpmozafterpaint'] is True
assert test_config['filters'] is not None
assert test_config['unit'] == 'ms'
assert test_config['preferences'] == {
'security.data_uri.block_toplevel_data_uri_navigations': False}
def test_cpstartup_has_expected_attributes(self):
config = get_config(self.argv_cpstartup)
test_config = config['tests'][0]