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

Side by Side Diff: LayoutTests/transitions/multiple-background-transitions.html

Issue 716963002: Remove property-specific handling in animation-test-helpers.js (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@animhelpercleanup
Patch Set: rm whitespace Created 6 years, 1 month 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> 1 <!DOCTYPE>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .box { 6 .box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 10px; 9 margin: 10px;
10 border: 1px solid black; 10 border: 1px solid black;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif') , url('../fast/backgrounds/repeat/resources/gradient.gif'); 43 background-image: url('../fast/backgrounds/repeat/resources/gradient.gif') , url('../fast/backgrounds/repeat/resources/gradient.gif');
44 background-position: 0 0, 0 80px; 44 background-position: 0 0, 0 80px;
45 } 45 }
46 46
47 </style> 47 </style>
48 <script src="../animations/resources/animation-test-helpers.js"></script> 48 <script src="../animations/resources/animation-test-helpers.js"></script>
49 <script type="text/javascript"> 49 <script type="text/javascript">
50 50
51 const expectedValues = [ 51 const expectedValues = [
52 // [time, element-id, property, expected-value, tolerance] 52 // [time, element-id, property, expected-value, tolerance]
53 [0.5, 'box', 'background-position', [40, 40], 2], 53 [0.5, 'box', 'background-position', "40px 40px, 40px 40px", 2],
54 [0.5, 'box2', 'background-position', [40, 40], 2], 54 [0.5, 'box2', 'background-position', "40px 40px", 2],
55 [0.5, 'box3', 'background-position', [40, 40], 2], 55 [0.5, 'box3', 'background-position', "40px 40px, 40px 80px", 2],
56 ]; 56 ];
57 57
58 function setupTest() 58 function setupTest()
59 { 59 {
60 document.getElementById('box').className = 'box final'; 60 document.getElementById('box').className = 'box final';
61 document.getElementById('box2').className = 'box final'; 61 document.getElementById('box2').className = 'box final';
62 document.getElementById('box3').className = 'box final'; 62 document.getElementById('box3').className = 'box final';
63 } 63 }
64 64
65 runTransitionTest(expectedValues, setupTest); 65 runTransitionTest(expectedValues, setupTest);
66 </script> 66 </script>
67 </head> 67 </head>
68 <body> 68 <body>
69 69
70 <div id="box" class="box"></div> 70 <div id="box" class="box"></div>
71 <div id="box2" class="box"></div> 71 <div id="box2" class="box"></div>
72 <div id="box3" class="box"></div> 72 <div id="box3" class="box"></div>
73 73
74 <div id="result"> 74 <div id="result">
75 </div> 75 </div>
76 76
77 </body> 77 </body>
78 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698