layout/reftests/svg/smil/smil-util.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/smil/smil-util.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +// Seeks to the given time and then removes the SVG document's class to trigger
     1.5 +// a reftest snapshot. If pauseFlag is true, animations will be paused.
     1.6 +function setTimeAndSnapshot(timeInSeconds, pauseFlag) {
     1.7 +  var svg = document.documentElement;
     1.8 +  if (pauseFlag) {
     1.9 +    svg.pauseAnimations();
    1.10 +  }
    1.11 +  svg.setCurrentTime(timeInSeconds);
    1.12 +  svg.removeAttribute("class");
    1.13 +}

mercurial