Backed out 2 changesets (bug 1411804) for failing eslint in testing/talos/talos/tests/layout/benchmarks/displaylist_mutate.html. r=backout

Backed out changeset 39ad112131fe (bug 1411804)
Backed out changeset 9421a340f682 (bug 1411804)
This commit is contained in:
Sebastian Hengst 2017-10-27 21:42:19 +02:00
Родитель ee86c85e9b
Коммит 7e5658f95b
4 изменённых файлов: 1 добавлений и 93 удалений

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

@ -47,7 +47,7 @@
"talos_options": ["--disable-stylo"]
},
"g4-e10s": {
"tests": ["basic_compositor_video", "glvideo", "displaylist_mutate"]
"tests": ["basic_compositor_video", "glvideo"]
},
"g4-stylo-disabled-e10s": {
"tests": ["basic_compositor_video", "glvideo"],

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

@ -981,26 +981,3 @@ class tp6_facebook_heavy(tp6_facebook):
tp6_facebook test ran against a heavy-user profile
"""
profile = 'simple'
@register_test()
class displaylist_mutate(PageloaderTest):
"""
Test modifying single items in a large display list. Measure transaction speed
to the compositor.
"""
tpmanifest = '${talos}/tests/layout/displaylist_mutate.manifest'
tpcycles = 1
tppagecycles = 5
tploadnocache = True
tpmozafterpaint = False
tpchrome = False
gecko_profile_interval = 2
gecko_profile_entries = 2000000
win_counters = w7_counters = linux_counters = mac_counters = None
filters = filter.ignore_first.prepare(1) + filter.median.prepare()
"""ASAP mode"""
preferences = {'layout.frame_rate': 0,
'docshell.event_starvation_delay_hint': 1,
'dom.send_after_paint_to_content': False}
unit = 'ms'

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

@ -1,68 +0,0 @@
<html>
<head>
<style>
div {
width:10px;
height:10px;
background-color:green;
display: inline-block;
}
</style>
</head>
<body id="body">
</body>
<script>
var start = null;
var divCount = 10000;
var maxIterations = 600;
for (var i = 0; i < divCount; i++) {
var div = document.createElement("div");
div.id = i;
document.getElementById("body").appendChild(div);
}
var i = 0;
function runFrame() {
if (document.getElementById(i).style.backgroundColor == "red") {
document.getElementById(i).style.backgroundColor = "green";
} else {
document.getElementById(i).style.backgroundColor = "red";
}
i++;
i = i%divCount;
if (--maxIterations == 0) {
var end = new Date();
if (window.tpRecordTime) {
window.tpRecordTime(end - start, start);
}
if (parent.reportResults) {
parent.reportResults(end - start, start);
}
return;
}
window.requestAnimationFrame(runFrame);
}
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("displaylist_mutate.html loaded", true).then(() => {
start = new Date();
window.requestAnimationFrame(runFrame);
});
});
</script>
</html>

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

@ -1 +0,0 @@
% http://localhost/tests/layout/benchmarks/displaylist_mutate.html