Index: third_party/WebKit/LayoutTests/fullscreen/non-ancestor-iframe.html |
diff --git a/third_party/WebKit/LayoutTests/fullscreen/non-ancestor-iframe.html b/third_party/WebKit/LayoutTests/fullscreen/non-ancestor-iframe.html |
index abab59b5dc187e67afaf085d087c4811d5887f55..9786f2a3aafb63f1365b50291b690e72ae3c7a83 100644 |
--- a/third_party/WebKit/LayoutTests/fullscreen/non-ancestor-iframe.html |
+++ b/third_party/WebKit/LayoutTests/fullscreen/non-ancestor-iframe.html |
@@ -9,16 +9,15 @@ |
waitForEventOnce(document, 'webkitfullscreenchange', function() { |
waitForEvent(document, 'webkitfullscreenchange', function() { |
- logResult(false, 'Exited full screen'); |
+ logResult(false, 'Exited full screen'); |
+ }); |
+ waitForEvent(iframe, 'load', function() { |
+ testExpected("document.webkitIsFullScreen", true); |
+ endTest(); |
}); |
iframe.src = 'resources/empty.html'; |
}); |
- waitForEvent(iframe, 'load', function() { |
- testExpected("document.webkitIsFullScreen", true); |
- endTest(); |
- }); |
- |
var startTest = function() { |
target.webkitRequestFullscreen(); |
}; |