oliver@apple.com | e386042 | 2008-12-08 10:35:33 +0000 | [diff] [blame] | 1 | <html> |
oliver@apple.com | e386042 | 2008-12-08 10:35:33 +0000 | [diff] [blame] | 2 | <body> |
| 3 | This tests that we don't crash if we clear a transitions duration during the transition end callback. |
| 4 | <div id="t" style="background-color:#000">test</div> |
| 5 | <script> |
rniwa@webkit.org | cc082ecd | 2012-06-16 03:42:58 +0000 | [diff] [blame] | 6 | if (window.testRunner) { |
| 7 | testRunner.dumpAsText(); |
| 8 | testRunner.waitUntilDone(); |
oliver@apple.com | e386042 | 2008-12-08 10:35:33 +0000 | [diff] [blame] | 9 | } |
| 10 | var el = document.getElementById('t'); |
| 11 | el.addEventListener('webkitTransitionEnd', function(){ |
| 12 | el.style.webkitTransitionDuration = ''; |
rniwa@webkit.org | cc082ecd | 2012-06-16 03:42:58 +0000 | [diff] [blame] | 13 | if (window.testRunner) |
| 14 | testRunner.notifyDone(); |
oliver@apple.com | e386042 | 2008-12-08 10:35:33 +0000 | [diff] [blame] | 15 | }); |
antti@apple.com | 4942ea5 | 2013-12-20 14:44:23 +0000 | [diff] [blame] | 16 | setTimeout(function() { el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff' }, 0); |
oliver@apple.com | e386042 | 2008-12-08 10:35:33 +0000 | [diff] [blame] | 17 | </script> |
| 18 | </body> |
| 19 | </html> |