| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 #box { | 4 #box { |
| 5 position: absolute; | 5 position: absolute; |
| 6 left: 100px; | 6 left: 100px; |
| 7 top: 100px; | 7 top: 100px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 } | 10 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 </style> | 34 </style> |
| 35 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 35 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> |
| 36 <script type="text/javascript" charset="utf-8"> | 36 <script type="text/javascript" charset="utf-8"> |
| 37 function runTest() { | 37 function runTest() { |
| 38 document.querySelector('#box').style.webkitAnimation = "anim 1s linear inf
inite"; | 38 document.querySelector('#box').style.webkitAnimation = "anim 1s linear inf
inite"; |
| 39 document.querySelector('#boxShorthand').style.webkitAnimation = "animShort
hand 1s linear infinite"; | 39 document.querySelector('#boxShorthand').style.webkitAnimation = "animShort
hand 1s linear infinite"; |
| 40 | 40 |
| 41 const expectedValues = [ | 41 const expectedValues = [ |
| 42 // [time, element-id, property, expected-value, tolerance] | 42 // [time, element-id, property, expected-value, tolerance] |
| 43 [2.5, "box", "listStyleImage", 0.5, 0.05], | |
| 44 [2.5, ["box", "boxStatic"], "listStyleImage", 0.5, 0.05], | 43 [2.5, ["box", "boxStatic"], "listStyleImage", 0.5, 0.05], |
| 45 [2.5, ["boxShorthand", "boxStatic"], "listStyleImage", 0.5, 0.05], | 44 [2.5, ["boxShorthand", "boxStatic"], "listStyleImage", 0.5, 0.05], |
| 46 ]; | 45 ]; |
| 47 | 46 |
| 48 var doPixelTest = true; | 47 var doPixelTest = true; |
| 49 var disablePauseAPI = false; | 48 var disablePauseAPI = false; |
| 50 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixel
Test); | 49 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixel
Test); |
| 51 } | 50 } |
| 52 </script> | 51 </script> |
| 53 </head> | 52 </head> |
| 54 <body onload="runTest()"> | 53 <body onload="runTest()"> |
| 55 <ul id="box"><li>one</li><li>two</li></ul> | 54 <ul id="box"><li>one</li><li>two</li></ul> |
| 56 <ul id="boxStatic"><li>one</li><li>two</li></ul> | 55 <ul id="boxStatic"><li>one</li><li>two</li></ul> |
| 57 <ul id="boxShorthand"><li>one</li><li>two</li></ul> | 56 <ul id="boxShorthand"><li>one</li><li>two</li></ul> |
| 58 <div id="result"></div> | 57 <div id="result"></div> |
| 59 </body> | 58 </body> |
| 60 </html> | 59 </html> |
| OLD | NEW |