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 c5cd6e271e3fa4ee501c49c9c03afe8f44e361f5..9a027fe4838a81bfd737ce21a1aad66258133858 100644 |
--- a/LayoutTests/fullscreen/full-screen-twice-newapi.html |
+++ b/LayoutTests/fullscreen/full-screen-twice-newapi.html |
@@ -2,49 +2,43 @@ |
<script src="full-screen-test.js"></script> |
<span></span> |
<script> |
- // Bail out early if the full screen API is not enabled or is missing: |
- if (Element.prototype.webkitRequestFullscreen == undefined) { |
- logResult(false, "Element.prototype.webkitRequestFullscreen == undefined"); |
- endTest(); |
- } else { |
- var span = document.getElementsByTagName('span')[0]; |
+ var span = document.getElementsByTagName('span')[0]; |
- var documentEnteredFullScreen = function() { |
- testExpected("document.webkitCurrentFullScreenElement", document.documentElement); |
- runWithKeyDown(function(){document.documentElement.webkitRequestFullscreen()}); |
- waitForEvent(document, 'webkitfullscreenerror', documentDidNotReenterFullScreen, false, true); |
- }; |
+ 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 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 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(); |
- }; |
+ var spanDidNotReenterFullScreen = function() { |
+ testExpected("document.webkitCurrentFullScreenElement", span); |
+ waitForEvent(document, 'webkitfullscreenchange', spanExited, false, true); |
+ document.webkitExitFullscreen(); |
+ }; |
- var spanExited = function() { |
- testExpected("document.webkitCurrentFullScreenElement", document.documentElement); |
- waitForEvent(document, 'webkitfullscreenchange', documentExited, false, true); |
- document.webkitExitFullscreen(); |
- }; |
+ var spanExited = function() { |
+ testExpected("document.webkitCurrentFullScreenElement", document.documentElement); |
+ waitForEvent(document, 'webkitfullscreenchange', documentExited, false, true); |
+ document.webkitExitFullscreen(); |
+ }; |
- var documentExited = function() { |
- testExpected("document.webkitCurrentFullScreenElement", undefined); |
- endTest(); |
- }; |
+ var documentExited = function() { |
+ testExpected("document.webkitCurrentFullScreenElement", undefined); |
+ endTest(); |
+ }; |
- runWithKeyDown(function(){document.documentElement.webkitRequestFullscreen()}); |
- waitForEvent(document, 'webkitfullscreenchange', documentEnteredFullScreen, false, true); |
- } |
+ runWithKeyDown(function(){document.documentElement.webkitRequestFullscreen()}); |
+ waitForEvent(document, 'webkitfullscreenchange', documentEnteredFullScreen, false, true); |
</script> |