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> <!doctype html>
<html class="reftest-wait"> <html>
<head> <head>
<style> <style>
video { video {
@ -13,20 +13,9 @@ fieldset {
} }
</style> </style>
<script> <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> </script>
</head> </head>
<body> <body>
<fieldset><video id="x"></video></fieldset> <fieldset><video id="x" style="visibility:hidden"></video></fieldset>
</body> </body>
</html> </html>

View File

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