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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/animation/animation-group-matching-transitions.html

Issue 2674573006: [DevTools] Migrate TargetObserver to AnimationModel observer where makes sense. (Closed)
Patch Set: Created 3 years, 10 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 <html> 1 <html>
2 <head> 2 <head>
3 <style type="text/css"> 3 <style type="text/css">
4 div { 4 div {
5 transition: height 1ms; 5 transition: height 1ms;
6 height: 100px; 6 height: 100px;
7 width: 100px; 7 width: 100px;
8 } 8 }
9 9
10 div.expand { 10 div.expand {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 var initialize_Animations = function() 49 var initialize_Animations = function()
50 { 50 {
51 InspectorTest.preloadModule("animation"); 51 InspectorTest.preloadModule("animation");
52 } 52 }
53 53
54 function test() 54 function test()
55 { 55 {
56 var groupIds = []; 56 var groupIds = [];
57 var i = 0; 57 var i = 0;
58 var stepNumber = 0; 58 var stepNumber = 0;
59 var model = Animation.AnimationModel.fromTarget(InspectorTest.mainTarget); 59 var model = InspectorTest.mainTarget.model(Animation.AnimationModel);
60 model.ensureEnabled(); 60 model.ensureEnabled();
61 model.addEventListener(Animation.AnimationModel.Events.AnimationGroupStarted , groupStarted); 61 model.addEventListener(Animation.AnimationModel.Events.AnimationGroupStarted , groupStarted);
62 // Each step triggers a new transition group. 62 // Each step triggers a new transition group.
63 var steps = [ 63 var steps = [
64 "resetElement('node1'); startTransition('node1')", 64 "resetElement('node1'); startTransition('node1')",
65 "resetElement('node2'); startTransition('node2')", 65 "resetElement('node2'); startTransition('node2')",
66 "resetElement('node3'); startTransition('node3')", 66 "resetElement('node3'); startTransition('node3')",
67 "resetElement('node1'); toggleClass('node1', 'duration'); startTransitio n('node1')", 67 "resetElement('node1'); toggleClass('node1', 'duration'); startTransitio n('node1')",
68 "resetElement('node1'); toggleClass('node1', 'duration'); startTransitio n('node1')", 68 "resetElement('node1'); toggleClass('node1', 'duration'); startTransitio n('node1')",
69 "resetElement('node2'); toggleClass('node2', 'duration'); startTransitio n('node2')", 69 "resetElement('node2'); toggleClass('node2', 'duration'); startTransitio n('node2')",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 which are applied through a variety of selectors. 106 which are applied through a variety of selectors.
107 </p> 107 </p>
108 108
109 <div id="node1" style="background-color: red"></div> 109 <div id="node1" style="background-color: red"></div>
110 <div id="node2" style="background-color: red"></div> 110 <div id="node2" style="background-color: red"></div>
111 <div id="node3" style="background-color: red"></div> 111 <div id="node3" style="background-color: red"></div>
112 <div id="node4" style="background-color: red"></div> 112 <div id="node4" style="background-color: red"></div>
113 113
114 </body> 114 </body>
115 </html> 115 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698