| 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 background-color: green; | 10 background-color: green; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 41 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> |
| 42 <script type="text/javascript" charset="utf-8"> | 42 <script type="text/javascript" charset="utf-8"> |
| 43 // This test was flaky because it would start before the images were loaded. | 43 // This test was flaky because it would start before the images were loaded. |
| 44 var imagesLoaded = 0; | 44 var imagesLoaded = 0; |
| 45 function imageLoaded() { | 45 function imageLoaded() { |
| 46 ++imagesLoaded; | 46 ++imagesLoaded; |
| 47 if (imagesLoaded == 2) { | 47 if (imagesLoaded == 2) { |
| 48 const expectedValues = [ | 48 const expectedValues = [ |
| 49 // [time, element-id, property, expected-value, tolerance] | 49 // [time, element-id, property, expected-value, tolerance] |
| 50 // FIXME: We can't test reading the borderImage shorthand because of bug
#13658. | 50 // FIXME: We can't test reading the borderImage shorthand because of bug
#13658. |
| 51 [2.5, "box", "borderImageSource", 0.5, 0.05], | |
| 52 [2.5, ["box", "boxStatic"], "borderImageSource", 0.5, 0.05], | 51 [2.5, ["box", "boxStatic"], "borderImageSource", 0.5, 0.05], |
| 53 [2.5, ["boxShorthand", "boxStatic"], "borderImageSource", 0.5, 0.05], | 52 [2.5, ["boxShorthand", "boxStatic"], "borderImageSource", 0.5, 0.05], |
| 54 ]; | 53 ]; |
| 55 | 54 |
| 56 var doPixelTest = true; | 55 var doPixelTest = true; |
| 57 var disablePauseAPI = false; | 56 var disablePauseAPI = false; |
| 58 var startTestImmediately = true; | 57 var startTestImmediately = true; |
| 59 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, undefin
ed, startTestImmediately); | 58 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, undefin
ed, startTestImmediately); |
| 60 } | 59 } |
| 61 } | 60 } |
| 62 </script> | 61 </script> |
| 63 </head> | 62 </head> |
| 64 <body> | 63 <body> |
| 65 <div id="box"></div> | 64 <div id="box"></div> |
| 66 <div id="boxShorthand"></div> | 65 <div id="boxShorthand"></div> |
| 67 <div id="boxStatic"></div> | 66 <div id="boxStatic"></div> |
| 68 <div id="result"></div> | 67 <div id="result"></div> |
| 69 <img src="../animations/resources/stripes-100.png" onLoad="imageLoaded();"/> | 68 <img src="../animations/resources/stripes-100.png" onLoad="imageLoaded();"/> |
| 70 <img src="../animations/resources/green-100.png" onLoad="imageLoaded();"/> | 69 <img src="../animations/resources/green-100.png" onLoad="imageLoaded();"/> |
| 71 </body> | 70 </body> |
| 72 </html> | 71 </html> |
| OLD | NEW |