mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
df0813bd02
commit
6dfffba33a
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user