Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-iframe-manual.html

Issue 2572333003: Import wpt@4970d7334aaf8977c5b617075aa48be1b6e482c7 (Closed)
Patch Set: Update TestExpectations Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-iframe-manual.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-iframe-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-iframe-manual.html
new file mode 100644
index 0000000000000000000000000000000000000000..e2149fd60d86fd03b9f6a8216d3fdd7d55639f60
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-remove-iframe-manual.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<title>Element#requestFullscreen() in iframe followed by removing the iframe</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../trusted-click.js"></script>
+<div id="log"></div>
+<iframe allowfullscreen></iframe>
+<script>
+async_test(t => {
+ const iframe = document.querySelector("iframe");
+ const iframeDocument = iframe.contentDocument;
+
+ document.onfullscreenchange = t.unreached_func("fullscreenchange event");
+ document.onfullscreenerror = t.unreached_func("fullscreenerror event");
+ iframeDocument.onfullscreenchange = t.unreached_func("iframe fullscreenchange event");
+ iframeDocument.onfullscreenerror = t.unreached_func("iframe fullscreenerror event");
+
+ trusted_click(t.step_func(() => {
+ iframeDocument.body.requestFullscreen();
+ iframe.remove();
+ // No events will be fired, end test after 100ms.
+ setTimeout(t.step_func_done(() => {
+ assert_equals(document.fullscreenElement, null);
+ assert_equals(iframeDocument.fullscreenElement, null);
+ }), 100);
+ }), document.body);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698