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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html

Issue 2446323003: Add tests while FullscreenUnprefixed flag is turned off. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-simple.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html b/third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html
index 1613df980ad9669fd2104eeca772c59695e114f9..f6423f918d47266484c50820f78b376e3d797066 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-complex.html
@@ -67,6 +67,15 @@ async_test((test) => {
assert_equals(host4.shadowRoot.fullscreenElement, null);
assert_equals(host5.shadowRoot.fullscreenElement, null);
+ // TODO(kochi): The 'retargeting' behavior is controlled by
+ // 'FullscreenUnprefixed' runtime flag dynamically. Until the
+ // flag is turned on, document.webkitFullscreenElement leaks the
+ // fullscreen element under shadow roots.
+ window.internals.runtimeFlags.fullscreenUnprefixedEnabled = false;
+ assert_false(window.internals.runtimeFlags.fullscreenUnprefixedEnabled);
+ assert_equals(document.webkitFullscreenElement, canvas);
+ assert_equals(document.webkitCurrentFullScreenElement, canvas);
+
document.exitFullscreen();
test.done();
});
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/fullscreen-element-in-shadow-simple.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698