2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script><style>
13 <div id='element'
></div>
17 async_test(function(t
) {
18 assert_equals(document
.timeline
.getAnimations().length
, 0);
19 assert_equals(container
.getAnimations().length
, 0);
20 assert_equals(element
.getAnimations().length
, 0);
22 element
.className
= 'cssAnimation';
23 onload = function () {
25 var animations
= document
.timeline
.getAnimations();
26 assert_equals(animations
.length
, 1);
27 assert_equals(container
.getAnimations().length
, 0);
28 assert_equals(element
.getAnimations().length
, 1);
30 animations
[0].finish();
31 assert_equals(document
.timeline
.getAnimations().length
, 0);
32 assert_equals(container
.getAnimations().length
, 0);
33 assert_equals(element
.getAnimations().length
, 0);
37 }, 'getAnimations() with cssanimations');