OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <script src="../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
4 | 4 |
5 <style> | 5 <style> |
6 @keyframes fade { | 6 @keyframes fade { |
7 0% { opacity: 0; } | 7 0% { opacity: 0; } |
8 100% { opacity: 1; } | 8 100% { opacity: 1; } |
9 } | 9 } |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 requestAnimationFrame(function() { | 38 requestAnimationFrame(function() { |
39 requestAnimationFrame(function() { | 39 requestAnimationFrame(function() { |
40 input.type = "button"; | 40 input.type = "button"; |
41 input.type = "text"; | 41 input.type = "text"; |
42 // Remove the element, but there's no detachLayoutTree() since it's alre
ady detached. | 42 // Remove the element, but there's no detachLayoutTree() since it's alre
ady detached. |
43 input.remove(); | 43 input.remove(); |
44 // Change the id which should mean no more animations. | 44 // Change the id which should mean no more animations. |
45 input.id = "target2"; | 45 input.id = "target2"; |
46 // Insert the element again. | 46 // Insert the element again. |
47 document.body.appendChild(input); | 47 document.body.appendChild(input); |
48 shouldBe("document.timeline.getAnimations().length", "0"); | 48 shouldBe("document.getAnimations().length", "0"); |
49 finishJSTest(); | 49 finishJSTest(); |
50 }); | 50 }); |
51 }); | 51 }); |
52 </script> | 52 </script> |
OLD | NEW |