summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/largest-contentful-paint/video-data-uri.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/largest-contentful-paint/video-data-uri.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/largest-contentful-paint/video-data-uri.html')
-rw-r--r--testing/web-platform/tests/largest-contentful-paint/video-data-uri.html148
1 files changed, 148 insertions, 0 deletions
diff --git a/testing/web-platform/tests/largest-contentful-paint/video-data-uri.html b/testing/web-platform/tests/largest-contentful-paint/video-data-uri.html
new file mode 100644
index 0000000000..a26ddd1420
--- /dev/null
+++ b/testing/web-platform/tests/largest-contentful-paint/video-data-uri.html
@@ -0,0 +1,148 @@
+<!doctype html>
+<html>
+<title>This test verifies a video element of data uri src triggers an LCP entry
+ to be emitted</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+
+<body>
+ <script>
+ const get_lcp_entry = () => {
+ return new Promise(resolve => {
+ new PerformanceObserver((list, observer) => {
+ if (list.getEntries()) {
+ observer.disconnect();
+ resolve(list.getEntries()[0]);
+ }
+ }).observe({ type: "largest-contentful-paint", buffered: true });
+ });
+ };
+
+ promise_test(async t => {
+ lcpEntry = await get_lcp_entry();
+ assert_true(lcpEntry.url.startsWith('data:video/mp4;base64,T2dnUwAC'));
+ }, "Video of data URI src should trigger an LCP entry to be emitted.")
+ </script>
+ <!--
+ This is the base64 encoding of the images/pattern.ogv video file.
+ -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