summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/document-picture-in-picture/enter-event.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/document-picture-in-picture/enter-event.https.html')
-rw-r--r--testing/web-platform/tests/document-picture-in-picture/enter-event.https.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/document-picture-in-picture/enter-event.https.html b/testing/web-platform/tests/document-picture-in-picture/enter-event.https.html
new file mode 100644
index 0000000000..1cac0ff22d
--- /dev/null
+++ b/testing/web-platform/tests/document-picture-in-picture/enter-event.https.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>Test that enter event is fired at documentPictureInPicture
+ when the PiP window in opened.</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/testdriver.js"></script>
+<script src="/resources/testdriver-vendor.js"></script>
+<body>
+<script>
+async_test((t) => {
+ test_driver.bless('request PiP window').then(t.step_func(_ => {
+ documentPictureInPicture.onenter = t.step_func_done();
+ documentPictureInPicture.requestWindow();
+ }));
+});
+</script>
+</body>