Bug 553881: Use SMIL reftest api-sanity-1.svg (and make it use standard reference case). r=tests_only

This commit is contained in:
Daniel Holbert 2010-03-21 12:23:30 -07:00
parent 1c298b72ff
commit 32f3a006df
3 changed files with 6 additions and 11 deletions

View File

@ -1,6 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<rect id="rect" width="100px" height="100px"
fill="lime"/>
</svg>

Before

Width:  |  Height:  |  Size: 166 B

View File

@ -4,13 +4,11 @@
class="reftest-wait"
>
<script type="application/javascript">
function go(evt) {
function go() {
// Try calling the animation-related methods in nsSVGSVGElement.cpp
// If any aren't implemented, we'll throw an exception and
// the rect will stay red.
// Note: I'm catching the exception because (I think) we need to
// make sure to remove the "reftest-wait" document-class
try {
document.documentElement.animationsPaused();
document.documentElement.pauseAnimations();
@ -18,6 +16,8 @@
document.documentElement.getCurrentTime();
document.documentElement.setCurrentTime(0);
} catch (e) {
// If something failed and threw an exception, we still need to remove
// the "reftest-wait" class
document.documentElement.removeAttribute("class");
throw e;
}
@ -29,6 +29,5 @@
document.documentElement.removeAttribute("class");
}
</script>
<rect id="rect" width="100px" height="100px"
fill="red"/>
<rect id="rect" width="100%" height="100%" fill="red" />
</svg>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -154,6 +154,8 @@ fails == anim-strokecolor-1.svg anim-standard-ref.svg # bug 436296
== anim-y-interp-5.svg anim-y-interp-5-ref.svg
== anim-y-interp-6.svg anim-y-interp-6-ref.svg
== api-sanity-1.svg lime.svg
== freeze-applied-late-1.svg anim-standard-ref.svg
== freeze-applied-late-2.svg anim-standard-ref.svg
== freeze-applied-late-3.svg anim-standard-ref.svg