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

Side by Side Diff: LayoutTests/transitions/multiple-background-size-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 24 matching lines...) Expand all
35 #box1.final { 35 #box1.final {
36 -webkit-mask-size: 50% 50%, 0% 0%; 36 -webkit-mask-size: 50% 50%, 0% 0%;
37 } 37 }
38 38
39 </style> 39 </style>
40 <script src="../animations/resources/animation-test-helpers.js"></script> 40 <script src="../animations/resources/animation-test-helpers.js"></script>
41 <script type="text/javascript"> 41 <script type="text/javascript">
42 42
43 const expectedValues = [ 43 const expectedValues = [
44 // [time, element-id, property, expected-value, tolerance] 44 // [time, element-id, property, expected-value, tolerance]
45 [0.5, 'box', '-webkit-background-size', [25, 25], 4], 45 [0.5, 'box', '-webkit-background-size', "25% 25%, 25% 25%", 4],
46 [0.5, 'box1', '-webkit-mask-size', [25, 25], 4], 46 [0.5, 'box1', '-webkit-mask-size', "25% 25%, 25% 25%", 4],
47 ]; 47 ];
48 48
49 function setupTest() 49 function setupTest()
50 { 50 {
51 document.getElementById('box').className = 'box final'; 51 document.getElementById('box').className = 'box final';
52 document.getElementById('box1').className = 'box final'; 52 document.getElementById('box1').className = 'box final';
53 } 53 }
54 54
55 runTransitionTest(expectedValues, setupTest); 55 runTransitionTest(expectedValues, setupTest);
56 </script> 56 </script>
57 </head> 57 </head>
58 <body> 58 <body>
59 59
60 <div id="box" class="box"></div> 60 <div id="box" class="box"></div>
61 <div id="box1" class="box"></div> 61 <div id="box1" class="box"></div>
62 62
63 <div id="result"> 63 <div id="result">
64 </div> 64 </div>
65 65
66 </body> 66 </body>
67 </html> 67 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698