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

Unified Diff: LayoutTests/fullscreen/parent-flow-inline-with-block-child.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/parent-flow-inline-with-block-child.html
diff --git a/LayoutTests/fullscreen/parent-flow-inline-with-block-child.html b/LayoutTests/fullscreen/parent-flow-inline-with-block-child.html
index 1adcf7cc391fc0a8af619343c3845ea2184f6cd6..7324dcd1363b299f6c359564f3feec6fe5079112 100644
--- a/LayoutTests/fullscreen/parent-flow-inline-with-block-child.html
+++ b/LayoutTests/fullscreen/parent-flow-inline-with-block-child.html
@@ -6,39 +6,37 @@
</div>
<script>
- if ('webkitRequestFullScreen' in Element.prototype) {
- if (window.testRunner)
- testRunner.waitUntilDone();
+ if (window.testRunner)
+ testRunner.waitUntilDone();
- var callback;
- var fullscreenChanged = function(event)
- {
- if (callback)
- callback(event)
- };
- document.addEventListener('webkitfullscreenchange', fullscreenChanged);
+ var callback;
+ var fullscreenChanged = function(event)
+ {
+ if (callback)
+ callback(event)
+ };
+ document.addEventListener('webkitfullscreenchange', fullscreenChanged);
- document.body.offsetTop;
- var span = document.getElementById('c2');
- var div = span.parentNode;
+ document.body.offsetTop;
+ var span = document.getElementById('c2');
+ var div = span.parentNode;
- var spanEnteredFullScreen = function(event) {
- setTimeout(function () {
- span.appendChild(document.createElement('div'));
- callback = function() {
- if (window.testRunner)
- testRunner.notifyDone();
- }
- document.webkitCancelFullScreen();
- }, 0);
- };
+ var spanEnteredFullScreen = function(event) {
+ setTimeout(function () {
+ span.appendChild(document.createElement('div'));
+ callback = function() {
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+ document.webkitCancelFullScreen();
+ }, 0);
+ };
- callback = spanEnteredFullScreen;
+ callback = spanEnteredFullScreen;
- document.addEventListener('keydown', function () {
- span.webkitRequestFullScreen();
- });
- if (window.eventSender)
- eventSender.keyDown('a');
- }
+ document.addEventListener('keydown', function () {
+ span.webkitRequestFullScreen();
+ });
+ if (window.eventSender)
+ eventSender.keyDown('a');
</script>
« no previous file with comments | « LayoutTests/fullscreen/full-screen-zIndex-after.html ('k') | LayoutTests/fullscreen/video-specified-size.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698