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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/animations/add-after-load-use-counter.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/add-after-load-use-counter.html b/third_party/WebKit/LayoutTests/svg/animations/add-after-load-use-counter.html
new file mode 100644
index 0000000000000000000000000000000000000000..cb8346ccf16a985f4ab0517c691d1b060b9de92d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/animations/add-after-load-use-counter.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg width="400" height="400">
+ <rect id="target" x="10" y="110" width="80" height="80">
+ <set attributeType="XML" attributeName="x" to="210" />
+ </rect>
+</svg>
+<script>
+'use strict';
+
+// From UseCounter.h
+var SVGSMILElementInsertedAfterLoad = 1457;
+
+var testHandle = async_test("SMIL element inserted after load is counted");
+
+window.onload = function() {
+ testHandle.step(function() {
+ var animation = document.createElementNS("http://www.w3.org/2000/svg", "set");
+ animation.setAttribute("attributeType", "XML");
+ animation.setAttribute("attributeName", "y");
+ animation.setAttribute("value", "310");
+ assert_false(internals.isUseCounted(document, SVGSMILElementInsertedAfterLoad));
+ target.appendChild(animation);
+ assert_true(internals.isUseCounted(document, SVGSMILElementInsertedAfterLoad));
+ });
+ testHandle.done();
+};
+
+</script>
« 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