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