| OLD | NEW |
| 1 <!DOCTYPE> | 1 <!DOCTYPE> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .box { | 6 .box { |
| 7 height: 200px; | 7 height: 200px; |
| 8 width: 200px; | 8 width: 200px; |
| 9 margin: 10px; | 9 margin: 10px; |
| 10 -webkit-transition-duration: 1s; | 10 -webkit-transition-duration: 1s; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #boxShorthand { | 23 #boxShorthand { |
| 24 background: url('../fast/backgrounds/repeat/resources/gradient.gif'); | 24 background: url('../fast/backgrounds/repeat/resources/gradient.gif'); |
| 25 -webkit-transition-property: background; | 25 -webkit-transition-property: background; |
| 26 } | 26 } |
| 27 | 27 |
| 28 #boxShorthand.final { | 28 #boxShorthand.final { |
| 29 background: url('../fast/backgrounds/repeat/resources/nav.blue.gif'); | 29 background: url('../fast/backgrounds/repeat/resources/nav.blue.gif'); |
| 30 } | 30 } |
| 31 | 31 |
| 32 </style> | 32 </style> |
| 33 <script src="resources/transition-test-helpers.js" type="text/javascript"></
script> | 33 <script src="../animations/resources/animation-test-helpers.js" type="text/j
avascript"></script> |
| 34 <script> | 34 <script> |
| 35 | 35 |
| 36 const expectedValues = [ | 36 const expectedValues = [ |
| 37 // [time, element-id, property, expected-value, tolerance] | 37 // [time, element-id, property, expected-value, tolerance] |
| 38 [0.5, 'box', 'background-image', 0.5, 0.05], | 38 [0.5, 'box', 'background-image', 0.5, 0.05], |
| 39 [0.5, 'boxShorthand', 'background-image', 0.5, 0.05], | 39 [0.5, 'boxShorthand', 'background-image', 0.5, 0.05], |
| 40 ]; | 40 ]; |
| 41 | 41 |
| 42 function setupTest() | 42 function setupTest() |
| 43 { | 43 { |
| 44 document.getElementById('box').className = 'box final'; | 44 document.getElementById('box').className = 'box final'; |
| 45 document.getElementById('boxShorthand').className = 'box final'; | 45 document.getElementById('boxShorthand').className = 'box final'; |
| 46 } | 46 } |
| 47 | 47 |
| 48 runTransitionTest(expectedValues, setupTest, usePauseAPI, true); | 48 runTransitionTest(expectedValues, setupTest, usePauseAPI); |
| 49 </script> | 49 </script> |
| 50 </head> | 50 </head> |
| 51 <body> | 51 <body> |
| 52 <div id="box" class="box"></div> | 52 <div id="box" class="box"></div> |
| 53 <div id="boxShorthand" class="box"></div> | 53 <div id="boxShorthand" class="box"></div> |
| 54 | 54 |
| 55 <div id="result"></div> | 55 <div id="result"></div> |
| 56 </body> | 56 </body> |
| 57 </html> | 57 </html> |
| OLD | NEW |