Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/script-href-no-animate.html

Issue 2618323002: Block animation of the SVGScriptElement (Closed)
Patch Set: Missing include Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/animations/script-href-no-animate.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/script-href-no-animate.html b/third_party/WebKit/LayoutTests/svg/animations/script-href-no-animate.html
new file mode 100644
index 0000000000000000000000000000000000000000..483cdfd16ddc81cb1274b0bca900e78b299072e8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/animations/script-href-no-animate.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<title>SVGScriptElement.href should not be animatable</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+var foo = 42;
+
+async_test(t => {
+ window.onload = () => {
+ var s = document.createElementNS('http://www.w3.org/2000/svg', 'script');
+ s.onload = t.unreached_func('Should not get a load event');
+ s.id = 'x';
+ document.querySelector('svg').appendChild(s);
+ requestAnimationFrame(_ => {
+ requestAnimationFrame(t.step_func_done(_ => {
+ assert_equals(foo, 42);
+ }));
+ });
+ };
+});
+</script>
+<svg xmlns:xlink="http://www.w3.org/1999/xlink">
+ <set href="#x" attributeName="href" to="resources/set-foo.js"/>
+ <set href="#x" attributeName="xlink:href" to="resources/set-foo.js"/>
+ <animate href="#x" attributeName="href" to="resources/set-foo.js" dur="0.01s"/>
+ <animate href="#x" attributeName="xlink:href" to="resources/set-foo.js" dur="0.01s"/>
+</svg>

Powered by Google App Engine
This is Rietveld 408576698