Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / transition-duration-cleared-in-transitionend-crash.html
blob33a8c3696fa89bd98521a103e3f0a6c66b595a86
1 <html>
2 <body>
3 Tests that we don't crash if we clear a transitions duration during the transition end callback. This test passes if it does not crash.
4 <div id="t" style="background-color:#000">test</div>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 // Force a layout so that changing the cssText below causes an animation.
12 document.body.offsetHeight;
14 var el = document.getElementById('t');
15 el.addEventListener('webkitTransitionEnd', function(){
16 el.style.webkitTransitionDuration = '';
17 if (window.testRunner)
18 testRunner.notifyDone();
19 });
20 el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff'
21 </script>
22 </body>
23 </html>