| 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>
|
|
|