haikuwebkit/LayoutTests/transitions/transition-end-event-prefix...

23 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

Regression: Event#stopPropagation() does not halt bubbling for webkitTransitionEnd https://bugs.webkit.org/show_bug.cgi?id=115656 Reviewed by Darin Adler. Source/WebCore: If we create a prefixed event to dispatch it (in the case we have only prefixed event listeners in client's code) then we need to make sure to keep it in sync with the original unprefixed event after it has been dispatched. While being dispatched the event can be modified by client's code and when propagated back to outer elements, attributes were not updated. This patch changes the old design of creating a separate event for the prefixed case and now change the type of the event (so the name) before dispatching it, keeping the attributes if changed and then rename it back to unprefixed when the dispatching is finished. Tests: transitions/transition-end-event-prefixed-01.html transitions/transition-end-event-prefixed-02.html transitions/transition-end-event-prefixed-03.html * dom/Event.h: (WebCore::Event::setType): * dom/EventTarget.cpp: (WebCore::EventTarget::fireEventListeners): LayoutTests: Added new tests to cover the bug. * transitions/transition-end-event-prefixed-03-expected.txt: Added. * transitions/transition-end-event-prefixed-03.html: Added. * transitions/transition-end-event-prefixed-02-expected.txt: Added. * transitions/transition-end-event-prefixed-02.html: Added. * transitions/transition-end-event-prefixed-01-expected.txt: Added. * transitions/transition-end-event-prefixed-01.html: Added. Canonical link: https://commits.webkit.org/134661@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150239 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-05-17 03:26:58 +00:00
Test to make sure that if prefixed transition events are modified we correctly modify unprefixed events.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS successfullyParsed is true
TEST COMPLETE
PASS transitionEventContainer.type is transitionEventBox.type
PASS transitionEventContainer.bubbles is transitionEventBox.bubbles
PASS transitionEventContainer.timeStamp is transitionEventBox.timeStamp
PASS transitionEventContainer.cancelable is transitionEventBox.cancelable
PASS transitionEventContainer.srcElement is transitionEventBox.srcElement
PASS transitionEventContainer.returnValue is transitionEventBox.returnValue
PASS transitionEventContainer.cancelBubble is transitionEventBox.cancelBubble
PASS transitionEventContainer.defaultPrevented is transitionEventBox.defaultPrevented
PASS transitionEventContainer.target is transitionEventBox.target
PASS transitionEventContainer.currentTarget is testContainer
PASS transitionEventContainer.pseudoElement is transitionEventBox.pseudoElement
PASS transitionEventContainer.elapsedTime is transitionEventBox.elapsedTime
PASS transitionEventContainer.propertyName is transitionEventBox.propertyName