Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / finish-event-after-gc.html
blob7cba44fbb539ef19b86c2f9360217699a5c934be
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <body>
5 <script>
6 var layoutTest = async_test('Finish event should be delivered even if a GC occurs. This test passes if it does not time out.');
7 var events = 0;
9 function finish() {
10 if (window.GCController)
11 GCController.collect();
12 if (++events == 2)
13 layoutTest.done();
16 // Use a distinct, unreferenced instance of the handler function.
17 document.body.animate([]).onfinish = finish.bind();
18 document.body.animate([]).onfinish = finish.bind();
20 if (window.GCController)
21 GCController.collect();
22 </script>