| Index: LayoutTests/web-animations-api/animation-timeline-detached-no-crash.html
|
| diff --git a/LayoutTests/web-animations-api/animation-timeline-detached-no-crash.html b/LayoutTests/web-animations-api/animation-timeline-detached-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..46e569e3172c14ee2162d389330faade4be42d26
|
| --- /dev/null
|
| +++ b/LayoutTests/web-animations-api/animation-timeline-detached-no-crash.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE html>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +
|
| +<script>
|
| +test(function() {
|
| + var doc = document.implementation.createDocument("", "", null);
|
| + doc.createElement("div").animate([], 1000);
|
| + var anim = doc.timeline.getAnimations()[0];
|
| + doc = null;
|
| + gc();
|
| + anim.cancel();
|
| +}, 'Calling cancel() on an animation detached from its timeline should not crash.');
|
| +</script>
|
|
|