Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Unified Diff: LayoutTests/fullscreen/empty-anonymous-block-continuation-crash.html

Issue 462253003: Remove early returns in fullscreen tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « LayoutTests/fullscreen/anonymous-block-merge-crash.html ('k') | LayoutTests/fullscreen/full-screen-cancel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698