Bug 1401992 - Make the reftest less flakey. r=me

We don't need the video controls to be painted.

MozReview-Commit-ID: AXsM8Q1vJm4
This commit is contained in:
Bobby Holley 2017-09-22 17:06:00 -07:00
parent df0813bd02
commit 6dfffba33a
2 changed files with 4 additions and 21 deletions

View File

@ -1,5 +1,5 @@
<!doctype html>
<html class="reftest-wait">
<html>
<head>
<style>
video {
@ -13,20 +13,9 @@ fieldset {
}
</style>
<script>
window.onload = function() {
let v = document.getElementById("x");
v.currentTime = -128;
v.controls = !v.controls;
// Wait for things to settle.
requestAnimationFrame(function() {
requestAnimationFrame(function() {
document.documentElement.removeAttribute("class");
});
});
}
</script>
</head>
<body>
<fieldset><video id="x"></video></fieldset>
<fieldset><video id="x" style="visibility:hidden"></video></fieldset>
</body>
</html>

View File

@ -1,5 +1,5 @@
<!doctype html>
<html class="reftest-wait">
<html>
<head>
<style>
video {
@ -22,17 +22,11 @@ window.onload = function() {
let v = document.getElementById("x");
v.currentTime = -128;
v.controls = !v.controls;
// Wait for things to settle.
requestAnimationFrame(function() {
requestAnimationFrame(function() {
document.documentElement.removeAttribute("class");
});
});
}
</script>
</head>
<body>
<!-- Native anonymous content shouldn't affect fieldset validity -->
<fieldset><video id="x"></video></fieldset>
<fieldset><video id="x" style="visibility:hidden"></video></fieldset>
</body>
</html>