Index: third_party/WebKit/LayoutTests/svg/animations/currentTime-use-counter.html |
diff --git a/third_party/WebKit/LayoutTests/svg/animations/currentTime-use-counter.html b/third_party/WebKit/LayoutTests/svg/animations/currentTime-use-counter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..930ce1fbca52a5a520f46e895a6128110f302db3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/animations/currentTime-use-counter.html |
@@ -0,0 +1,25 @@ |
+<!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, SVGSMILPausing)); |
+ svgRoot.pauseAnimations(); |
+ assert_true(internals.isUseCounted(document, SVGSMILPausing)); |
+ |
+ assert_false(internals.isUseCounted(document, SVGSMILCurrentTime)); |
+ svgRoot.setCurrentTime(6000); |
+ assert_true(internals.isUseCounted(document, SVGSMILCurrentTime)); |
+}, 'setCurrentTime is use counted'); |
+ |
+</script> |