Commit 922e20e0 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Reland "Move SMIL events tests to WPT"

Now with <script> elements in the HTML namespace. Because reasons.

Change-Id: Ia3eba0f7856f265ed6fa601272a2d7c577b07c1c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2043450
Commit-Queue: Stephen Chenney <schenney@chromium.org>
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739354}
parent 647e974a
<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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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 xmlns="http://www.w3.org/1999/xhtml" src="/resources/testharness.js"/>
<script href="../../resources/testharnessreport.js"/> <script xmlns="http://www.w3.org/1999/xhtml" src="/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