3 <title>Test for bug
1332699</title>
4 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
5 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
6 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css">
10 transition: color
100ms;
18 SimpleTest
.waitForExplicitFinish();
20 window
.onload = function () {
21 let $test
= document
.getElementById('test');
22 is(getComputedStyle($test
).color
, 'rgb(255, 0, 0)',
23 'color should be red before transition');
25 $test
.addEventListener('webkitTransitionEnd', function() {
28 is(getComputedStyle($test
).color
, 'rgb(0, 128, 0)',
29 'color should be green after transition');
30 $test
.dispatchEvent(new TransitionEvent('transitionend'));
31 is(numEvents
, 1, "Shouldn't receive the prefixed event again");
35 $test
.className
= 'changed';