Bug 524828 - Fix random orange in test_smilGetStartTime.xhtml
authorBrian Birtles <birtles@gmail.com>
Sat, 31 Oct 2009 09:15:14 +1100
changeset 34430 d1c5512a35868af10b893d6d84dd366c55e2a03e
parent 34429 ea9fed00597c0abf8e6d2d4caf54388b4c1a4c73
child 34431 61d1e7b9f1f521b13c7376adaaf39d4d71a519fb
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs524828
milestone1.9.3a1pre
Bug 524828 - Fix random orange in test_smilGetStartTime.xhtml
content/smil/test/test_smilGetStartTime.xhtml
--- a/content/smil/test/test_smilGetStartTime.xhtml
+++ b/content/smil/test/test_smilGetStartTime.xhtml
@@ -22,16 +22,19 @@
 
 /* Global Variables */
 var svg = document.getElementById("svg");
 var anim = document.getElementById("anim");
 
 SimpleTest.waitForExplicitFinish();
 
 function main() {
+  svg.pauseAnimations();
+  svg.setCurrentTime(0);
+
   // indefinite 
   var exceptionCaught = false;
   try {
     anim.getStartTime();
   } catch(e) {
     exceptionCaught = true;
     is(e.code, DOMException.INVALID_STATE_ERR,
        "Unexpected exception code from getStartTime.");