gecko/layout/reftests/svg/smil/smil-util.js
Brian Birtles ffded06cc0 Bug 474357, Calls to setCurrentTime, beginElementAt etc. should update the DOM state immediately. r+sr=roc
--HG--
extra : rebase_source : 7c69aae13ee1c1b4fff077a046e042bae9a4970d
2009-01-22 14:00:27 +13:00

11 lines
367 B
JavaScript

// 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");
}