Index: LayoutTests/fullscreen/anonymous-block-merge-crash.html |
diff --git a/LayoutTests/fullscreen/anonymous-block-merge-crash.html b/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
index 1e7ed8e740a46ebe13d2fd6fe5034561e26692eb..b5e4b789646d5b1566f6ced2fecdd89274f215d6 100644 |
--- a/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
+++ b/LayoutTests/fullscreen/anonymous-block-merge-crash.html |
@@ -5,16 +5,10 @@ |
} else { |
var span = document.getElementsByTagName('span')[0]; |
- count = 0; |
document.onwebkitfullscreenchange = function(event) { |
- count++; |
- if (count == 1) { |
- document.body.appendChild(document.createElement('div')); |
- document.webkitCancelFullScreen(); |
- return; |
- } |
- if (testRunner && count == 2) |
- testRunner.notifyDone(); |
+ document.body.appendChild(document.createElement('div')); |
+ document.webkitCancelFullScreen(); |
+ testRunner.notifyDone(); |
}; |
runWithKeyDown(function(){span.webkitRequestFullScreen()}); |