Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1456)

Side by Side Diff: third_party/WebKit/LayoutTests/animations/lazy-detached-animation-stop.html

Issue 2947103002: Expose getAnimations as function on Document (Closed)
Patch Set: Rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698