Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / rubberbanding / momentum-reset.html
index 4f07365..c1e8ea1 100644 (file)
         if (document.documentElement.scrollTop == 0) {
             // FAIL: Above didn't result in overscroll.
             document.getElementById('box').style.background = 'blue';
-            return;
-        }
+        } else {
 
-        document.getElementById('box').style.background = 'green';
-        // Wait for the timer to restore the position.
-        testRunner.waitUntilDone();
-        var startedScrolling = false;
-        window.onscroll = function() {
-            if (document.documentElement.scrollTop == 0) {
-                testRunner.notifyDone();
-            }
-        };
+            document.getElementById('box').style.background = 'green';
+            // Wait for the timer to restore the position.
+            testRunner.waitUntilDone();
+            var startedScrolling = false;
+            window.onscroll = function() {
+                if (document.documentElement.scrollTop == 0) {
+                    testRunner.notifyDone();
+                }
+            };
+        }
     }
 </script>
 </body>