| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <style> | 5 <style> |
| 6 .box { | 6 .box { |
| 7 position: relative; | 7 position: relative; |
| 8 left: 0; | 8 left: 0; |
| 9 height: 100px; | 9 height: 100px; |
| 10 width: 100px; | 10 width: 100px; |
| 11 margin: 10px; | 11 margin: 10px; |
| 12 background-color: blue; | 12 background-color: blue; |
| 13 -webkit-transition-property: width; | 13 -webkit-transition-property: width; |
| 14 -webkit-transition-duration: 0.5s; | 14 -webkit-transition-duration: 0.5s; |
| 15 } | 15 } |
| 16 </style> | 16 </style> |
| 17 <script src="transition-end-event-helpers.js"></script> | 17 <script src="transition-end-event-helpers.js"></script> |
| 18 <script src="../fast/js/resources/js-test-pre.js"></script> | 18 <script src="../resources/js-test.js"></script> |
| 19 <script type="text/javascript"> | 19 <script type="text/javascript"> |
| 20 function runAnimation() { | 20 function runAnimation() { |
| 21 var box = document.getElementById('box1'); | 21 var box = document.getElementById('box1'); |
| 22 box.style.width = '200px'; | 22 box.style.width = '200px'; |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 <body onLoad="runAnimation()"> | 26 <body onLoad="runAnimation()"> |
| 27 <script type="text/javascript"> | 27 <script type="text/javascript"> |
| 28 description("Test to make sure that if prefixed transition events are modifi
ed we correctly modify unprefixed events."); | 28 description("Test to make sure that if prefixed transition events are modifi
ed we correctly modify unprefixed events."); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 if (window.testRunner) | 63 if (window.testRunner) |
| 64 testRunner.notifyDone(); | 64 testRunner.notifyDone(); |
| 65 document.body.removeChild(testContainer); | 65 document.body.removeChild(testContainer); |
| 66 } | 66 } |
| 67 | 67 |
| 68 testContainer.addEventListener('webkitTransitionEnd', outerTransitionEndEven
t, false); | 68 testContainer.addEventListener('webkitTransitionEnd', outerTransitionEndEven
t, false); |
| 69 box.addEventListener('webkitTransitionEnd', innerTransitionEndEvent, false); | 69 box.addEventListener('webkitTransitionEnd', innerTransitionEndEvent, false); |
| 70 </script> | 70 </script> |
| 71 </body> | 71 </body> |
| 72 </html> | 72 </html> |
| OLD | NEW |