| 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: 200px; | 8 height: 200px; |
| 9 width: 200px; | 9 width: 200px; |
| 10 background-color: red; | 10 background-color: red; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 </style> | 26 </style> |
| 27 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 27 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> |
| 28 <script type="text/javascript" charset="utf-8"> | 28 <script type="text/javascript" charset="utf-8"> |
| 29 // This test was flaky because it would start before the images were loaded. | 29 // This test was flaky because it would start before the images were loaded. |
| 30 var imagesLoaded = 0; | 30 var imagesLoaded = 0; |
| 31 function imageLoaded() { | 31 function imageLoaded() { |
| 32 ++imagesLoaded; | 32 ++imagesLoaded; |
| 33 if (imagesLoaded == 2) { | 33 if (imagesLoaded == 2) { |
| 34 const expectedValues = [ | 34 const expectedValues = [ |
| 35 // [time, element-id, property, expected-value, tolerance] | 35 // [time, element-id, property, expected-value, tolerance] |
| 36 [2.25, "box", "webkitMaskBoxImage", 0.25, 0.05], | |
| 37 [2.25, ["box", "boxStatic"], "webkitMaskBoxImage", 0.25, 0.05] | 36 [2.25, ["box", "boxStatic"], "webkitMaskBoxImage", 0.25, 0.05] |
| 38 ]; | 37 ]; |
| 39 var doPixelTest = true; | 38 var doPixelTest = true; |
| 40 var disablePauseAPI = false; | 39 var disablePauseAPI = false; |
| 41 var startTestImmediately = true; | 40 var startTestImmediately = true; |
| 42 runAnimationTest(expectedValues, undefined, undefined, disablePauseAPI, do
PixelTest, startTestImmediately); | 41 runAnimationTest(expectedValues, undefined, undefined, disablePauseAPI, do
PixelTest, startTestImmediately); |
| 43 } | 42 } |
| 44 } | 43 } |
| 45 </script> | 44 </script> |
| 46 </head> | 45 </head> |
| 47 <body> | 46 <body> |
| 48 <img id="box" src="resources/green-100.png" onLoad="imageLoaded();"/> | 47 <img id="box" src="resources/green-100.png" onLoad="imageLoaded();"/> |
| 49 <img id="boxStatic" src="resources/stripes-100.png" onLoad="imageLoaded();"/> | 48 <img id="boxStatic" src="resources/stripes-100.png" onLoad="imageLoaded();"/> |
| 50 <div id="result"></div> | 49 <div id="result"></div> |
| 51 </body> | 50 </body> |
| 52 </html> | 51 </html> |
| OLD | NEW |