Index: LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html |
diff --git a/LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html b/LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html |
index 59519c2f4c140366ae101f0676e507e987e6e545..2e18fb6f6520a746c5cb5d57d6b4c38b42ce6f5c 100644 |
--- a/LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html |
+++ b/LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html |
@@ -11,23 +11,21 @@ Test passes if it does not crash. |
</i> |
</summary> |
<script> |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
-if ("webkitRequestFullScreen" in Element.prototype) { |
- var span = document.getElementById('test'); |
- var fullscreenChangeEvent = function(event) { |
- if (document.webkitIsFullScreen) |
- document.webkitCancelFullScreen(); |
- }; |
+ var span = document.getElementById('test'); |
+ var fullscreenChangeEvent = function(event) { |
+ if (document.webkitIsFullScreen) |
+ document.webkitCancelFullScreen(); |
+ }; |
- document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent); |
- document.addEventListener('keydown', function () { |
- span.webkitRequestFullScreen(); |
+ document.addEventListener('webkitfullscreenchange', fullscreenChangeEvent); |
+ document.addEventListener('keydown', function () { |
+ span.webkitRequestFullScreen(); |
}); |
eventSender.keyDown('a'); |
-} |
</script> |
</body> |
</html> |