Index: LayoutTests/fullscreen/full-screen-render-inline.html |
diff --git a/LayoutTests/fullscreen/full-screen-render-inline.html b/LayoutTests/fullscreen/full-screen-render-inline.html |
index 44c1ceb25cfa378f8f0c6c681d42a0112c2e213f..ceb3113eb00c76c22ead70248cedaaa4d02b41f1 100644 |
--- a/LayoutTests/fullscreen/full-screen-render-inline.html |
+++ b/LayoutTests/fullscreen/full-screen-render-inline.html |
@@ -3,33 +3,31 @@ |
<body> |
<div>a<span>b<div>c</div>d</span>e</div> |
<script> |
-// This test turns fullscreen on and off quickly, |
-// then see if it renderes just like as before. |
- if ("webkitRequestFullScreen" in Element.prototype) { |
- if (window.testRunner) |
- testRunner.waitUntilDone(); |
- document.body.offsetTop; |
- var span = document.getElementsByTagName('span')[0]; |
+ // This test turns fullscreen on and off quickly, |
+ // then see if it renderes just like as before. |
+ if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ document.body.offsetTop; |
+ var span = document.getElementsByTagName('span')[0]; |
- var fullscreenChangeEvent = function(event) { |
- if (document.webkitIsFullScreen) { |
- setTimeout(function () { |
- document.webkitCancelFullScreen(); |
- }, 0); |
- } else { |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- } |
- }; |
+ var fullscreenChangeEvent = function(event) { |
+ if (document.webkitIsFullScreen) { |
+ setTimeout(function () { |
+ document.webkitCancelFullScreen(); |
+ }, 0); |
+ } else { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ } |
+ }; |
- document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent); |
+ document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent); |
- document.addEventListener('keydown', function () { |
- span.webkitRequestFullScreen(); |
- }); |
- if (window.eventSender) |
- eventSender.keyDown('a'); |
- } |
+ document.addEventListener('keydown', function () { |
+ span.webkitRequestFullScreen(); |
+ }); |
+ if (window.eventSender) |
+ eventSender.keyDown('a'); |
</script> |
</body> |
</html> |