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

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

Issue 458223003: Remove the fullscreen element stack exemption for webkitRequestFullScreen() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: spec typo 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.html
diff --git a/LayoutTests/fullscreen/full-screen-twice.html b/LayoutTests/fullscreen/full-screen-twice.html
index f473db23f492392258a70e5a22cb6d162e49d8b1..038aaaa8fa14ccf0ef7614979797b5c618be88b3 100644
--- a/LayoutTests/fullscreen/full-screen-twice.html
+++ b/LayoutTests/fullscreen/full-screen-twice.html
@@ -7,29 +7,15 @@
logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
endTest();
} else {
- var callback;
- var fullscreenChanged = function(event)
- {
- if (callback)
- callback(event)
- };
- waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
-
- var span = document.getElementsByTagName('span')[0];
+ var span = document.getElementsByTagName("span")[0];
var spanEnteredFullScreen = function() {
testExpected("document.webkitCurrentFullScreenElement", span);
- callback = documentEnteredFullScreen;
+ waitForEventAndEnd(document, "webkitfullscreenerror");
runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()});
};
-
- var documentEnteredFullScreen = function() {
- testExpected("document.webkitCurrentFullScreenElement", document.documentElement);
- callback = null;
- endTest();
- };
- callback = spanEnteredFullScreen;
+ waitForEvent(document, "webkitfullscreenchange", spanEnteredFullScreen);
runWithKeyDown(function(){span.webkitRequestFullScreen()});
}
</script>
« no previous file with comments | « LayoutTests/fullscreen/full-screen-css-expected.txt ('k') | LayoutTests/fullscreen/full-screen-twice-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698