зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7955936492
Коммит
31bd7efc68
|
@ -8,7 +8,8 @@
|
|||
<body>
|
||||
<p id="display"></p>
|
||||
<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 -->
|
||||
<circle cx="20" cy="20" r="15" fill="blue">
|
||||
<animate attributeName="cx" from="20" to="100" begin="1s" dur="4s"
|
||||
|
@ -58,6 +59,9 @@ function tryRestart(elem, state, expected) {
|
|||
}
|
||||
|
||||
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
|
||||
is(always.getStartTime(), 1);
|
||||
is(whenNotActive.getStartTime(), 1);
|
||||
|
|
Загрузка…
Ссылка в новой задаче