Bug 1137952 - Call mozRequestAnimationFrame on the right window. r=mstange, a=test-only
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 02 Mar 2015 17:37:33 -0500
changeset 250166 d29e62045cc8
parent 250165 64549e948fc8
child 250168 c7d212eecc8e
push id4519
push userryanvm@gmail.com
push date2015-03-03 15:11 +0000
treeherdermozilla-beta@d29e62045cc8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange, test-only
bugs1137952
milestone37.0
Bug 1137952 - Call mozRequestAnimationFrame on the right window. r=mstange, a=test-only
dom/events/test/test_bug607464.html
--- a/dom/events/test/test_bug607464.html
+++ b/dom/events/test/test_bug607464.html
@@ -50,20 +50,20 @@ function runTest() {
     '</div>', '_blank', 'width=300,height=300');
   SimpleTest.waitForFocus(function () {
     var scrollbox = win.document.getElementById("scrollbox");
     let scrollTopBefore = scrollbox.scrollTop;
 
     scrollDown15PxWithPixelScrolling(scrollbox);
 
     // wait for the next refresh driver run
-    window.mozRequestAnimationFrame(function() {
+    win.mozRequestAnimationFrame(function() {
       // actually, wait for the next one before checking results, since
       // scrolling might not be flushed until after this code has run
-      window.mozRequestAnimationFrame(function() {
+      win.mozRequestAnimationFrame(function() {
         is(scrollbox.scrollTop, scrollTopBefore + 15,
            "Pixel scrolling should have finished after one refresh driver iteration. " +
            "We shouldn't be scrolling smoothly, even though the pref is set.");
         win.close();
         clearPrefs();
         SimpleTest.finish();
       });
     });