Bug 755457 - Switch tests to using MozReftestInvalidate to avoid random failures. r=longsonr.

--HG--
extra : rebase_source : 1ea53f76a9e878fd56e0eb479fe6f93ca2419327
This commit is contained in:
Jonathan Watt 2012-05-16 11:07:43 +01:00
parent 1c9fa9bc51
commit 81c12cf5b8
2 changed files with 24 additions and 4 deletions

View File

@ -1,9 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="setTimeAndSnapshot(1, true)">
class="reftest-wait">
<title>Test animation of the "width" and "height" attributes of a filter primitive element</title>
<script xlink:href="smil-util.js" type="text/javascript"/>
<script>
window.addEventListener("MozReftestInvalidate", run, false);
setTimeout(run, 3000); // for non-gecko
function run() {
setTimeAndSnapshot(1, true)
}
</script>
<filter id="flood_filter" x="0%" y="0%" width="100%" height="100%">
<feFlood width="0%" height="0%" flood-color="lime">
<animate attributeName="width"

Before

Width:  |  Height:  |  Size: 946 B

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1,9 +1,19 @@
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
class="reftest-wait"
onload="setTimeAndSnapshot(1, true)">
class="reftest-wait">
<title>Test animation of the "width" and "height" attributes of the "filter" element</title>
<script xlink:href="smil-util.js" type="text/javascript"/>
<script>
window.addEventListener("MozReftestInvalidate", run, false);
setTimeout(run, 3000); // for non-gecko
function run() {
setTimeAndSnapshot(1, true)
}
</script>
<filter id="flood_filter" x="0%" y="0%" width="0%" height="0%">
<animate attributeName="width"
calcMode="linear"

Before

Width:  |  Height:  |  Size: 906 B

After

Width:  |  Height:  |  Size: 1.0 KiB