Bug 550975: Apply this bug's mochitest-stability-improvements to test_smilRestart.xhtml, which got missed in main landing for this bug. [tests-only]

This commit is contained in:
Daniel Holbert 2010-07-22 12:19:46 -07:00
Родитель 7955936492
Коммит 31bd7efc68
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -8,7 +8,8 @@
<body> <body>
<p id="display"></p> <p id="display"></p>
<div id="content" style="display: none"> <div id="content" style="display: none">
<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="120px" height="120px"> <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="120px" height="120px"
onload="this.pauseAnimations()">
<!-- These 3 circles only differ in their animation's "restart" value --> <!-- These 3 circles only differ in their animation's "restart" value -->
<circle cx="20" cy="20" r="15" fill="blue"> <circle cx="20" cy="20" r="15" fill="blue">
<animate attributeName="cx" from="20" to="100" begin="1s" dur="4s" <animate attributeName="cx" from="20" to="100" begin="1s" dur="4s"
@ -58,6 +59,9 @@ function tryRestart(elem, state, expected) {
} }
function main() { function main() {
ok(svg.animationsPaused(), "should be paused by <svg> load handler");
is(svg.getCurrentTime(), 0, "should be paused at 0 in <svg> load handler");
// At first everything should be starting at 1s // At first everything should be starting at 1s
is(always.getStartTime(), 1); is(always.getStartTime(), 1);
is(whenNotActive.getStartTime(), 1); is(whenNotActive.getStartTime(), 1);