| 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..d50bfaf3694d8cb56e976ff720c7fb825f0f3e82
|
| --- /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 = 1504;
|
| +var SVGSMILCurrentTime = 1505;
|
| +
|
| +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>
|
|
|