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

Side by Side Diff: LayoutTests/transitions/multiple-mask-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 background-color: gray; 10 background-color: gray;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif '), url('../fast/backgrounds/repeat/resources/gradient.gif'); 43 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif '), url('../fast/backgrounds/repeat/resources/gradient.gif');
44 -webkit-mask-position: 0 0, 0 80px; 44 -webkit-mask-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', '-webkit-mask-position', [40, 40], 5], 53 [0.5, 'box', '-webkit-mask-position', "40px 40px, 40px 40px", 5],
54 [0.5, 'box2', '-webkit-mask-position', [40, 40], 5], 54 [0.5, 'box2', '-webkit-mask-position', "40px 40px", 5],
55 [0.5, 'box3', '-webkit-mask-position', [40, 40], 5], 55 [0.5, 'box3', '-webkit-mask-position', "40px 40px, 40px 80px", 5],
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