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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/animations/beginEndAnimationElement-use-counter.html

Issue 2243173002: SVG: Use counters for SMIL methods on animation elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <svg width="400" height="400">
5 <rect x="10" y="10" width="80" height="80">
6 <animate id="anim" attributeName="x" from="10" to="310" dur="10s" begin= "0s"/>
7 </rect>
8 </svg>
9 <script>
10 'use strict';
11
12 // From UseCounter.h
13 var SVGSMILAnimationElementTiming = 1504;
14 var SVGSMILBeginEndAnimationElement = 1505;
15
16 test(() => {
17 var animation = document.getElementById('anim');
18 assert_false(internals.isUseCounted(document, SVGSMILAnimationElementTiming) );
19 animation.getSimpleDuration();
20 assert_true(internals.isUseCounted(document, SVGSMILAnimationElementTiming)) ;
21
22 assert_false(internals.isUseCounted(document, SVGSMILBeginEndAnimationElemen t));
23 animation.endElement();
24 assert_true(internals.isUseCounted(document, SVGSMILBeginEndAnimationElement ));
25 }, 'endElement is use counted');
26
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698