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

Unified Diff: third_party/WebKit/LayoutTests/svg/animations/pausing-use-counter.html

Issue 2246023002: SVG: Use counters for SMIL methods on <svg> root element (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/svg/animations/pausing-use-counter.html
diff --git a/third_party/WebKit/LayoutTests/svg/animations/pausing-use-counter.html b/third_party/WebKit/LayoutTests/svg/animations/pausing-use-counter.html
new file mode 100644
index 0000000000000000000000000000000000000000..e37fc5e59429561417ff12d7a9195051fbf5bf16
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/animations/pausing-use-counter.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<svg id="svgRoot" width="400" height="400">
+</svg>
+<script>
+'use strict';
+
+// From UseCounter.h
+var SVGSMILPausing = 1506;
+var SVGSMILCurrentTime = 1507;
+
+test(() => {
+ var svgRoot = document.getElementById('svgRoot');
+ assert_false(internals.isUseCounted(document, SVGSMILCurrentTime));
+ svgRoot.getCurrentTime();
+ assert_true(internals.isUseCounted(document, SVGSMILCurrentTime));
+
+ assert_false(internals.isUseCounted(document, SVGSMILPausing));
+ svgRoot.animationsPaused();
+ assert_true(internals.isUseCounted(document, SVGSMILPausing));
+}, 'animationsPaused is use counted');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698