Bug 1137952 - Call mozRequestAnimationFrame on the right window. r=mstange
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 02 Mar 2015 17:37:33 -0500
changeset 231510 98f395293242a68f256d74690aea1a60b620ca3f
parent 231509 ced7bcaa0e52f86c6abc3b30226e48b2fe7cbd2d
child 231511 bc72e91be73809e4ee48e5f455e0d0c2a1e6eb9c
push id28353
push usercbook@mozilla.com
push dateTue, 03 Mar 2015 12:54:59 +0000
treeherdermozilla-central@985070813323 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1137952
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1137952 - Call mozRequestAnimationFrame on the right window. r=mstange
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();
         SimpleTest.finish();
       });
     });
   }, win);