mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 553881: Use SMIL reftest api-sanity-1.svg (and make it use standard reference case). r=tests_only
This commit is contained in:
parent
1c298b72ff
commit
32f3a006df
@ -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 |
@ -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 |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user