зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1649619 [wpt PR 24402] - [PaintTiming] Let videos trigger FCP, a=testonly
Automatic update from web-platform-tests [PaintTiming] Let videos trigger FCP This CL adds a call to SetImagePainted() so that FCP fires when there we paint a video. Bug: 1071450 Change-Id: I9590517fd3355226096fd62079a3a4aa6eb50735 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276244 Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Cr-Commit-Position: refs/heads/master@{#784189} -- wpt-commits: 17f0e364e3584535436669a490887e723f3f61e6 wpt-pr: 24402
This commit is contained in:
Родитель
cd891b9ffc
Коммит
01e6174536
|
@ -6,6 +6,7 @@
|
|||
<script src="../resources/utils.js"></script>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/common/media.js"></script>
|
||||
<video id="video" autoplay></video>
|
||||
<script>
|
||||
promise_test(async t => {
|
||||
|
@ -14,7 +15,7 @@
|
|||
await assertNoFirstContentfulPaint(t);
|
||||
// Set actual video content to trigger FCP.
|
||||
const video = document.getElementById('video');
|
||||
video.setAttribute('src', '/media/test.mp4');
|
||||
video.src = getVideoURI('/media/test');
|
||||
await new Promise(resolve => {
|
||||
video.oncanplay = resolve;
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче