Index: LayoutTests/fullscreen/full-screen-line-boxes-crash.html |
diff --git a/LayoutTests/fullscreen/full-screen-line-boxes-crash.html b/LayoutTests/fullscreen/full-screen-line-boxes-crash.html |
index fc5865f1868730273cf7dedc0277b86409cf3764..7b46f4514f364d5eff1d54be8df2c73930015e09 100644 |
--- a/LayoutTests/fullscreen/full-screen-line-boxes-crash.html |
+++ b/LayoutTests/fullscreen/full-screen-line-boxes-crash.html |
@@ -6,24 +6,19 @@ PASS. |
<span style="margin-top: 1em;">WebKit didn't crash. |
<script src="full-screen-test.js"></script> |
<script> |
- if (Element.prototype.webkitRequestFullScreen == undefined) { |
- logResult(false, "Element.prototype.webkitRequestFullScreen == undefined"); |
- endTest(); |
- } else { |
- var fullscreenChanged = function(event) |
- { |
- callback(event) |
- }; |
- waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged); |
- var span = document.getElementsByTagName('span')[0]; |
- var spanEnteredFullScreen = function() { |
- runWithKeyDown(function() { document.documentElement.webkitRequestFullScreen(); }); |
- setTimeout("endTest()", 0); |
- }; |
+ var fullscreenChanged = function(event) |
+ { |
+ callback(event) |
+ }; |
+ waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged); |
+ var span = document.getElementsByTagName('span')[0]; |
+ var spanEnteredFullScreen = function() { |
+ runWithKeyDown(function() { document.documentElement.webkitRequestFullScreen(); }); |
+ setTimeout("endTest()", 0); |
+ }; |
- callback = spanEnteredFullScreen; |
- runWithKeyDown(function() { span.webkitRequestFullScreen(); }); |
- } |
+ callback = spanEnteredFullScreen; |
+ runWithKeyDown(function() { span.webkitRequestFullScreen(); }); |
</script> |
</body> |
</html> |