Bug 1209405 - Part 5: Add animation test that changes 'display' attribute. r=birtles

MozReview-Commit-ID: BYxlY83O83x

--HG--
extra : rebase_source : 58af9fa1f93bfc81607cc27359056a611deec053
This commit is contained in:
Daisuke Akatsuka 2016-05-23 10:47:27 +09:00
parent 761ea8c326
commit d4d3ef1214
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,23 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait">
<title>Test animation that changes 'display' attribute on an element that is not the immediate parent</title>
<script xlink:href="smil-util.js" type="text/javascript"/>
<g display="none" id="g">
<rect width="100%" height="100%" fill="lime">
<animate xlink:href="#g"
attributeName="display"
values="none;inline"
calcMode="discrete"
dur="100s"/>
</rect>
</g>
<script>
window.addEventListener("MozReftestInvalidate", function() {
setTimeAndWaitToSnapshot(49.9, 0.1);
});
</script>
</svg>

After

Width:  |  Height:  |  Size: 717 B

View File

@ -0,0 +1,20 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait">
<title>Test animation that changes 'display' attribute</title>
<script xlink:href="smil-util.js" type="text/javascript"/>
<rect display="none" width="100%" height="100%" fill="lime">
<animate attributeName="display"
values="none;inline"
calcMode="discrete"
dur="100s"/>
</rect>
<script>
window.addEventListener("MozReftestInvalidate", function() {
setTimeAndWaitToSnapshot(49.9, 0.1);
});
</script>
</svg>

After

Width:  |  Height:  |  Size: 607 B

View File

@ -274,4 +274,8 @@ fuzzy-if(cocoaWidget&&layersGPUAccelerated,1,2) == anim-gradient-attr-presence-0
== anim-defs-gradient-property.svg lime.svg
== anim-defs-gradient-attribute.svg lime.svg
== anim-defs-fill.svg lime.svg
== anim-defs-width.svg lime.svg
== anim-defs-width.svg lime.svg
# Test animation that changes 'display' attribute
== anim-display.svg lime.svg
== anim-display-in-g-element.svg lime.svg