Bug 840469 - Make animateMotion-mpath-pathLength-1.svg render in a failure state when its script and/or animations don't run. r=dholbert.

This commit is contained in:
Jonathan Watt 2013-02-12 23:29:41 +00:00
Родитель 6042139e7f
Коммит 53650324ea
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -2,12 +2,12 @@
xmlns:xlink="http://www.w3.org/1999/xlink" class="reftest-wait">
<title>Test that pathLength of paths has no effect in animation</title>
<defs>
<path id="path" pathLength="100" d="M-200,0 h400" />
<path id="path" pathLength="100" d="M0,0 h400" />
</defs>
<script xlink:href="../smil-util.js" type="text/javascript"/>
<script type="text/javascript">
function doTest() {
setTimeAndSnapshot(0.5, true);
setTimeAndSnapshot(100.5, true);
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
@ -15,16 +15,16 @@
<!-- calcMode="linear" -->
<rect x="10" y="10" width="100" height="100" fill="red"/>
<rect x="10" y="10" width="100" height="100" fill="lime">
<animateMotion dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear">
<rect x="-190" y="10" width="100" height="100" fill="lime">
<animateMotion begin="100s" dur="1s" keyPoints="0;1" keyTimes="0;1" calcMode="linear">
<mpath xlink:href="#path" />
</animateMotion>
</rect>
<!-- calcMode="paced" -->
<rect x="10" y="110" width="100" height="100" fill="red"/>
<rect x="10" y="110" width="100" height="100" fill="lime">
<animateMotion dur="1s">
<rect x="-190" y="110" width="100" height="100" fill="lime">
<animateMotion begin="100s" dur="1s">
<mpath xlink:href="#path" />
</animateMotion>
</rect>

До

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

После

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