Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / animation-timeline-detached-no-crash.html
blob46e569e3172c14ee2162d389330faade4be42d26
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
5 <script>
6 test(function() {
7 var doc = document.implementation.createDocument("", "", null);
8 doc.createElement("div").animate([], 1000);
9 var anim = doc.timeline.getAnimations()[0];
10 doc = null;
11 gc();
12 anim.cancel();
13 }, 'Calling cancel() on an animation detached from its timeline should not crash.');
14 </script>