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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-move-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-move-manual.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-move-manual.html b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-move-manual.html
new file mode 100644
index 0000000000000000000000000000000000000000..697a27f3a3583d9041f7742f4f742091b2f18417
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/fullscreen/api/element-request-fullscreen-and-move-manual.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<title>Element#requestFullscreen() followed by moving the element within the document</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../trusted-click.js"></script>
+<div id="log"></div>
+<div id="target"></div>
+<div id="moveto"></div>
+<script>
+async_test(t => {
+ const target = document.getElementById("target");
+ const moveTo = document.getElementById("moveto");
+
+ document.onfullscreenchange = t.step_func_done(() => {
+ assert_equals(document.fullscreenElement, target);
+ assert_equals(target.parentNode, moveTo);
+ });
+ document.onfullscreenerror = t.unreached_func("fullscreenchange event");
+
+ trusted_click(t.step_func(() => {
+ target.requestFullscreen();
+ moveTo.appendChild(target);
+ }), document.body);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698