Commit 6a196c81 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Move SMIL events tests to WPT

Change-Id: Ie4c00b4b6b6eba3b55f86793620a502780590864
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2041270Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#738955}
parent 7e139f39
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'beginEvent'</title> <title>Animation triggers on 'beginEvent'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze"/>
<set attributeName="width" to="100" begin="anim.beginEvent"/> <set attributeName="width" to="100" begin="anim.beginEvent"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'endEvent'</title> <title>Animation triggers on 'endEvent'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s"/>
<set attributeName="width" to="100" begin="anim.endEvent"/> <set attributeName="width" to="100" begin="anim.endEvent"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>'onbegin' event handler content attribute</title> <title>'onbegin' event handler content attribute</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze" <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze"
onbegin="document.getElementById('anim2').beginElement()"/> onbegin="document.getElementById('anim2').beginElement()"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>'onend' event handler content attribute</title> <title>'onend' event handler content attribute</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze" <animate id="anim" attributeName="visibility" to="visible" begin="0s" end="2s" fill="freeze"
onend="document.getElementById('anim2').beginElement()"/> onend="document.getElementById('anim2').beginElement()"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>'onrepeat' event handler content attribute</title> <title>'onrepeat' event handler content attribute</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="1s" fill="freeze" repeatCount="2" <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="1s" fill="freeze" repeatCount="2"
onrepeat="document.getElementById('anim2').beginElement()"/> onrepeat="document.getElementById('anim2').beginElement()"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'repeatEvent'</title> <title>Animation triggers on 'repeatEvent'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="1s" repeatCount="2" fill="freeze"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="1s" repeatCount="2" fill="freeze"/>
<set attributeName="width" to="100" begin="anim.repeatEvent"/> <set attributeName="width" to="100" begin="anim.repeatEvent"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation does not triggers on 'repeat(0)'</title> <title>Animation does not triggers on 'repeat(0)'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="100" height="100" fill="green"> <rect width="100" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<set attributeName="width" to="0" begin="anim.repeat(0)"/> <set attributeName="width" to="0" begin="anim.repeat(0)"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'repeat(1)'</title> <title>Animation triggers on 'repeat(1)'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<set attributeName="width" to="100" begin="anim.repeat(1)"/> <set attributeName="width" to="100" begin="anim.repeat(1)"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'repeat(2)'</title> <title>Animation triggers on 'repeat(2)'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<set attributeName="width" to="100" begin="anim.repeat(2)"/> <set attributeName="width" to="100" begin="anim.repeat(2)"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'repeat(3)'</title> <title>Animation triggers on 'repeat(3)'</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="0" height="100" fill="green"> <rect width="0" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<set attributeName="width" to="100" begin="anim.repeat(3)"/> <set attributeName="width" to="100" begin="anim.repeat(3)"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>No repeat iteration at interval end</title> <title>No repeat iteration at interval end</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<rect width="100" height="100" fill="green"> <rect width="100" height="100" fill="green">
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<set attributeName="width" to="0" begin="anim.repeat(4)"/> <set attributeName="width" to="0" begin="anim.repeat(4)"/>
......
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<title>Animation triggers on 'repeatEvent' iteration</title> <title>Animation triggers on 'repeatEvent' iteration</title>
<script href="../../resources/testharness.js"/> <script href="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script href="/resources/testharnessreport.js"/>
<g> <g>
<animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/> <animate id="anim" attributeName="visibility" to="visible" begin="0s" dur="2s" repeatCount="4"/>
<rect x="0" y="0" width="100" height="100" fill="green"> <rect x="0" y="0" width="100" height="100" fill="green">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment