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

Unified Diff: LayoutTests/fullscreen/full-screen-twice-newapi.html

Issue 482543002: Ignore fullscreen requests for the current fullscreen element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months 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: LayoutTests/fullscreen/full-screen-twice-newapi.html
diff --git a/LayoutTests/fullscreen/full-screen-twice-newapi.html b/LayoutTests/fullscreen/full-screen-twice-newapi.html
index 9a027fe4838a81bfd737ce21a1aad66258133858..11837289ec6f3afcd6740af28366c844e2317571 100644
--- a/LayoutTests/fullscreen/full-screen-twice-newapi.html
+++ b/LayoutTests/fullscreen/full-screen-twice-newapi.html
@@ -6,24 +6,12 @@
var documentEnteredFullScreen = function() {
testExpected("document.webkitCurrentFullScreenElement", document.documentElement);
- runWithKeyDown(function(){document.documentElement.webkitRequestFullscreen()});
- waitForEvent(document, 'webkitfullscreenerror', documentDidNotReenterFullScreen, false, true);
- };
-
- var documentDidNotReenterFullScreen = function() {
- testExpected("document.webkitCurrentFullScreenElement", document.documentElement);
runWithKeyDown(function(){span.webkitRequestFullscreen()});
waitForEvent(document, 'webkitfullscreenchange', spanEnteredFullScreen, false, true);
};
var spanEnteredFullScreen = function() {
testExpected("document.webkitCurrentFullScreenElement", span);
- runWithKeyDown(function(){span.webkitRequestFullscreen()});
- waitForEvent(document, 'webkitfullscreenerror', spanDidNotReenterFullScreen, false, true);
- };
-
- var spanDidNotReenterFullScreen = function() {
- testExpected("document.webkitCurrentFullScreenElement", span);
waitForEvent(document, 'webkitfullscreenchange', spanExited, false, true);
document.webkitExitFullscreen();
};

Powered by Google App Engine
This is Rietveld 408576698