Bug 1086937 patch 3 (Firefox 35-specific bustage): advance_clock is not in animation_utils.js on aurora. a=bustage
authorL. David Baron <dbaron@dbaron.org>
Thu, 13 Nov 2014 16:28:28 -0800
changeset 233879 751a34f8231f9d6b80359486adc943d2bef631e1
parent 233878 9ff937d547f886c241c0f3e4d75fab1f527b1124
child 233880 187e9fa68b671b717314fb5faec6b0ccdfc0982c
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1086937
milestone35.0a2
Bug 1086937 patch 3 (Firefox 35-specific bustage): advance_clock is not in animation_utils.js on aurora. a=bustage
layout/style/test/test_animations_async_tests.html
--- a/layout/style/test/test_animations_async_tests.html
+++ b/layout/style/test/test_animations_async_tests.html
@@ -11,16 +11,20 @@
   @keyframes slide-left { from { margin-left: -1000px } }
   </style>
   <script type="application/javascript">
 
   SimpleTest.waitForExplicitFinish();
 
   var gDisplay;
 
+  function advance_clock(milliseconds) {
+    SpecialPowers.DOMWindowUtils.advanceTimeAndRefresh(milliseconds);
+  }
+
   function run() {
     gDisplay = document.getElementById("display");
     setTimeout(test1, 0);
   }
 
   /*
    * Bug 1086937 - Animations continue correctly across load of
    * downloadable font.