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

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

Issue 2618323002: Block animation of the SVGScriptElement (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>SVGScriptElement.href should not be animatable</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script>
6 var foo = 42;
7
8 async_test(t => {
9 window.onload = () => {
10 var s = document.createElementNS('http://www.w3.org/2000/svg', 'script');
11 s.onload = t.unreached_func('Should not get a load event');
12 s.id = 'x';
13 document.querySelector('svg').appendChild(s);
14 requestAnimationFrame(_ => {
15 requestAnimationFrame(t.step_func_done(_ => {
Mike West 2017/01/09 19:31:19 Why two frames? I'll defer to y'all with regard to
fs 2017/01/10 10:15:16 This is a bit of a frailty with the test I'm afrai
16 assert_equals(foo, 42);
17 }));
18 });
19 };
20 });
21 </script>
22 <svg>
23 <rect width="100" height="100" fill="green"/>
24 <set href="#x" attributeName="href" to="resources/set-foo.js"/>
Mike West 2017/01/09 19:31:19 Would you mind adding a similar test for `<animate
fs 2017/01/10 10:15:16 I can do that.
25 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698