mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Make EventListener-invoke-legacy.html a little more robust to missing interfaces.
This commit is contained in:
parent
4fadf9b0b6
commit
0200a233fd
3 changed files with 25 additions and 7 deletions
|
@ -160431,7 +160431,7 @@
|
||||||
"support"
|
"support"
|
||||||
],
|
],
|
||||||
"dom/events/EventListener-invoke-legacy.html": [
|
"dom/events/EventListener-invoke-legacy.html": [
|
||||||
"5c047e994f2bcb971918b42760c70cea7176abcb",
|
"e56b332acb454ab76964b78588536777946ddff8",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"dom/events/EventListenerOptions-capture.html": [
|
"dom/events/EventListenerOptions-capture.html": [
|
||||||
|
|
|
@ -1,9 +1,27 @@
|
||||||
[EventListener-invoke-legacy.html]
|
[EventListener-invoke-legacy.html]
|
||||||
type: testharness
|
type: testharness
|
||||||
expected: ERROR
|
expected: TIMEOUT
|
||||||
[Listener of transitionend]
|
[Listener of transitionend]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Legacy listener of transitionend]
|
[Legacy listener of transitionend]
|
||||||
expected: TIMEOUT
|
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
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ function runLegacyEventTest(type, legacyType, ctor, setup) {
|
||||||
assert_unreached("listener of " + legacyType + " should not be invoked again");
|
assert_unreached("listener of " + legacyType + " should not be invoked again");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
elem.dispatchEvent(new ctor(type));
|
elem.dispatchEvent(new window[ctor](type));
|
||||||
t.done();
|
t.done();
|
||||||
}));
|
}));
|
||||||
setup(elem);
|
setup(elem);
|
||||||
|
@ -65,8 +65,8 @@ function setupAnimation(elem) {
|
||||||
elem.style.animation = 'test 30ms 2';
|
elem.style.animation = 'test 30ms 2';
|
||||||
}
|
}
|
||||||
|
|
||||||
runLegacyEventTest('transitionend', 'webkitTransitionEnd', TransitionEvent, setupTransition);
|
runLegacyEventTest('transitionend', 'webkitTransitionEnd', "TransitionEvent", setupTransition);
|
||||||
runLegacyEventTest('animationend', 'webkitAnimationEnd', AnimationEvent, setupAnimation);
|
runLegacyEventTest('animationend', 'webkitAnimationEnd', "AnimationEvent", setupAnimation);
|
||||||
runLegacyEventTest('animationiteration', 'webkitAnimationIteration', AnimationEvent, setupAnimation);
|
runLegacyEventTest('animationiteration', 'webkitAnimationIteration', "AnimationEvent", setupAnimation);
|
||||||
runLegacyEventTest('animationstart', 'webkitAnimationStart', AnimationEvent, setupAnimation);
|
runLegacyEventTest('animationstart', 'webkitAnimationStart', "AnimationEvent", setupAnimation);
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue