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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/animations/add-after-load-use-counter.html

Issue 2132323002: Add some additional SMIL use counters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/animations/begin-use-counters.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 id="target" x="10" y="110" width="80" height="80">
6 <set attributeType="XML" attributeName="x" to="210" />
7 </rect>
8 </svg>
9 <script>
10 'use strict';
11
12 // From UseCounter.h
13 var SVGSMILElementInsertedAfterLoad = 1457;
14
15 var testHandle = async_test("SMIL element inserted after load is counted");
16
17 window.onload = function() {
18 testHandle.step(function() {
19 var animation = document.createElementNS("http://www.w3.org/2000/svg", " set");
20 animation.setAttribute("attributeType", "XML");
21 animation.setAttribute("attributeName", "y");
22 animation.setAttribute("value", "310");
23 assert_false(internals.isUseCounted(document, SVGSMILElementInsertedAfte rLoad));
24 target.appendChild(animation);
25 assert_true(internals.isUseCounted(document, SVGSMILElementInsertedAfter Load));
26 });
27 testHandle.done();
28 };
29
30 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/animations/begin-use-counters.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698