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>
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();
20 el
.style
.cssText
+= ';-webkit-transition:background-color 0.2s;background-color:#fff'