| <html> |
| <body> |
| This tests that we don't crash if we clear a transitions duration during the transition end callback. |
| <div id="t" style="background-color:#000">test</div> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| var el = document.getElementById('t'); |
| el.addEventListener('webkitTransitionEnd', function(){ |
| el.style.webkitTransitionDuration = ''; |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| }); |
| setTimeout(function() { el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff' }, 0); |
| </script> |
| </body> |
| </html> |