Bug 1319458: Mark <body> as display:none during pageload of talos glterrain test. r=jmaher

MozReview-Commit-ID: LdUVInFYrDn
This commit is contained in:
Daniel Holbert 2016-11-22 13:13:45 -08:00
Родитель 5c0be72ef2
Коммит a4b633bdc7
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -364,6 +364,11 @@
// The full test starts here
function test() {
// We initially hide the <body>, to reduce the chance of spinning our wheels
// with incremental ASAP-paint-mode paints during pageload. Now that onload
// has fired, we un-hide it:
document.body.style.display = "";
gResults = {values: [], names: [], raw: []};
// This test measures average frame interval during WebGL animation as follows:
// 1. Creates a new WebGL canvas.
@ -393,7 +398,7 @@
}
</script>
</head>
<body onload="test();" style="overflow:hidden; margin:0">
<body onload="test();" style="overflow:hidden; margin:0; display:none">
<canvas id="c"></canvas>
<img src="grass.jpeg" style="display:none" id="grass"/>
</body>