Bug 537139: Re-enable reftest, and add a few more. r=tests_only

This commit is contained in:
Daniel Holbert 2010-03-11 22:03:49 -08:00
Родитель b87539e3b1
Коммит f91a6047ce
5 изменённых файлов: 53 добавлений и 2 удалений

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

@ -162,4 +162,7 @@ fails == anim-strokewidth-1xml.svg anim-standard-ref.svg # bug 534028
== inactivate-with-active-unchanged-1.svg anim-standard-ref.svg
== inactivate-with-active-unchanged-2.svg anim-standard-ref.svg
random == smil-transitions-interaction-1.svg lime.svg # bug 549705
== smil-transitions-interaction-1.svg lime.svg
== smil-transitions-interaction-2.svg lime.svg
== smil-transitions-interaction-3.svg lime.svg
== smil-transitions-interaction-4.svg lime.svg

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

@ -2,7 +2,8 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="setTimeAndSnapshot(1.0, true)">
<!-- This test checks that SMIL Animations don't trigger CSS transitions -->
<!-- This test checks that we don't trigger a CSS transition when
SMIL animation effects are first applied. -->
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect width="100%" height="100%"
style="fill: red; -moz-transition: 200s fill">

До

Ширина:  |  Высота:  |  Размер: 476 B

После

Ширина:  |  Высота:  |  Размер: 518 B

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

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="setTimeAndSnapshot(1.0, true)">
<!-- This test checks that we don't trigger a CSS transition after
SMIL animation effects are applied. -->
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect width="100%" height="100%"
style="fill: red; -moz-transition: 1s fill">
<set attributeName="fill" to="lime" begin="1s" dur="indefinite"/>
</rect>
</svg>

После

Ширина:  |  Высота:  |  Размер: 511 B

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

@ -0,0 +1,14 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="document.documentElement.pauseAnimations();
document.documentElement.setCurrentTime(1.0);
setTimeAndSnapshot(2.0, false)">
<!-- This test checks that we don't trigger a CSS transition when
SMIL animation effects are removed. -->
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect width="100%" height="100%"
style="fill: lime; -moz-transition: 200s fill">
<set attributeName="fill" to="red" begin="1s" dur="1s"/>
</rect>
</svg>

После

Ширина:  |  Высота:  |  Размер: 621 B

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

@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="document.documentElement.pauseAnimations();
document.documentElement.setCurrentTime(1.0);
setTimeAndSnapshot(1.5, false)">
<!-- This test checks that we don't trigger a CSS transition during
interpolation from-to animation. We seek to 1.5s, halfway through the
animation, when we're *just* to the point where the lime stroke is wide
enough to cover up the red rect behind it. If a transition were to
start, it would slow us down and allow some red to show.
-->
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect width="100%" height="100%" style="fill: lime"/> <rect width="30"
height="30" style="fill: red"/>
<rect width="20" height="20"
style="fill: lime; stroke: lime; -moz-transition: 200s stroke-width">
<animate attributeName="stroke-width" from="10px" to="30px"
begin="1s" dur="1s" fill="freeze"/>
</rect>
</svg>

После

Ширина:  |  Высота:  |  Размер: 1.0 KiB