Skip to content


Browse files Browse the repository at this point in the history
Make EventListener-invoke-legacy.html a little more robust to missing…
… interfaces.
  • Loading branch information
Ms2ger committed Feb 20, 2017
1 parent 4fadf9b commit 0200a23
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -160431,7 +160431,7 @@
"dom/events/EventListener-invoke-legacy.html": [
"dom/events/EventListenerOptions-capture.html": [
Expand Down
@@ -1,9 +1,27 @@
type: testharness
expected: ERROR
expected: TIMEOUT
[Listener of transitionend]
expected: FAIL

[Legacy listener of transitionend]
expected: TIMEOUT

[Listener of animationend]
expected: TIMEOUT

[Legacy listener of animationend]
expected: TIMEOUT

[Listener of animationiteration]
expected: TIMEOUT

[Legacy listener of animationiteration]
expected: TIMEOUT

[Listener of animationstart]
expected: TIMEOUT

[Legacy listener of animationstart]
expected: TIMEOUT

Expand Up @@ -43,7 +43,7 @@
assert_unreached("listener of " + legacyType + " should not be invoked again");
elem.dispatchEvent(new ctor(type));
elem.dispatchEvent(new window[ctor](type));
Expand All @@ -65,8 +65,8 @@ = 'test 30ms 2';

runLegacyEventTest('transitionend', 'webkitTransitionEnd', TransitionEvent, setupTransition);
runLegacyEventTest('animationend', 'webkitAnimationEnd', AnimationEvent, setupAnimation);
runLegacyEventTest('animationiteration', 'webkitAnimationIteration', AnimationEvent, setupAnimation);
runLegacyEventTest('animationstart', 'webkitAnimationStart', AnimationEvent, setupAnimation);
runLegacyEventTest('transitionend', 'webkitTransitionEnd', "TransitionEvent", setupTransition);
runLegacyEventTest('animationend', 'webkitAnimationEnd', "AnimationEvent", setupAnimation);
runLegacyEventTest('animationiteration', 'webkitAnimationIteration', "AnimationEvent", setupAnimation);
runLegacyEventTest('animationstart', 'webkitAnimationStart', "AnimationEvent", setupAnimation);

0 comments on commit 0200a23

Please sign in to comment.