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 @@
<body>
<p>Test dynamic removal of transformed and reflected video </p>
&nbsp;<video id="one" style="transform:rotate(20deg)"></video><br>
&nbsp;<video style="transform:scale(0.5)"></video><br>
&nbsp;<video style="transform:skew(20deg)"></video><br>
&nbsp;<video class="otherVids" style="transform:scale(0.5)"></video><br>
&nbsp;<video class="otherVids" style="transform:skew(20deg)"></video><br>
<script>
var videos = Array.from(document.getElementsByClassName("otherVids"));
var presentationPromise =
Promise.all(videos.map(video => videoPresentationPromise(video)));
setSrcByTagName('video', 'content/test.ogv');
document.body.removeChild(document.getElementById('one'));
document.body.offsetLeft;
async_test(t => {
waitForMultipleEvents("canplaythrough", 2, () => {
t.done();
});
presentationPromise.then(() => t.done());
});
</script>
</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