Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / transition-duration-cleared-in-transitionend-crash.html
blobc430662ea32742e46df527b697b7316262a65752
1 <html>
2 <head>
3 <title>Crash when clearing webkitTransitionDuration in webkitTransitionEnd event handler</title>
4 </head>
5 <body>
6 This tests that we don't crash if we clear a transitions duration during the transition end callback.
7 <div id="t" style="background-color:#000">test</div>
8 <script>
9 if (window.layoutTestController) {
10 layoutTestController.dumpAsText();
11 layoutTestController.waitUntilDone();
13 var el = document.getElementById('t');
14 el.addEventListener('webkitTransitionEnd', function(){
15 el.style.webkitTransitionDuration = '';
16 if (window.layoutTestController)
17 layoutTestController.notifyDone();
18 });
19 el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff'
20 </script>
21 </body>
22 </html>