Commit 00c40e2d authored by Thomas Guilbert's avatar Thomas Guilbert Committed by Chromium LUCI CQ

Deflake video-layer-crash.html

This CL updates video-layer-crash.html to use
video.requestVideoFrameCallback() and guarantee that a frame is
outputed before ending the test.

Bug: 1082868
Change-Id: I7d75319a50f1f5eae07d3644e148c6cdf8558c45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560879
Auto-Submit: Thomas Guilbert <tguilbert@chromium.org>
Commit-Queue: Mounir Lamouri <mlamouri@chromium.org>
Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Cr-Commit-Position: refs/heads/master@{#832124}
parent afaa68c1
...@@ -11,16 +11,18 @@ ...@@ -11,16 +11,18 @@
<body> <body>
<p>Test dynamic removal of transformed and reflected video </p> <p>Test dynamic removal of transformed and reflected video </p>
&nbsp;<video id="one" style="transform:rotate(20deg)"></video><br> &nbsp;<video id="one" style="transform:rotate(20deg)"></video><br>
&nbsp;<video style="transform:scale(0.5)"></video><br> &nbsp;<video class="otherVids" style="transform:scale(0.5)"></video><br>
&nbsp;<video style="transform:skew(20deg)"></video><br> &nbsp;<video class="otherVids" style="transform:skew(20deg)"></video><br>
<script> <script>
var videos = Array.from(document.getElementsByClassName("otherVids"));
var presentationPromise =
Promise.all(videos.map(video => videoPresentationPromise(video)));
setSrcByTagName('video', 'content/test.ogv'); setSrcByTagName('video', 'content/test.ogv');
document.body.removeChild(document.getElementById('one')); document.body.removeChild(document.getElementById('one'));
document.body.offsetLeft; document.body.offsetLeft;
async_test(t => { async_test(t => {
waitForMultipleEvents("canplaythrough", 2, () => { presentationPromise.then(() => t.done());
t.done();
});
}); });
</script> </script>
</body> </body>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment