- 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();
+ }
+ };
+ }