зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
df0813bd02
Коммит
6dfffba33a
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче