Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(815)

Unified Diff: LayoutTests/fast/dom/shadow/event-path.html

Issue 473833002: Don't emptify event.path after dispatching an event. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/event-path-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/event-path.html
diff --git a/LayoutTests/fast/dom/shadow/event-path.html b/LayoutTests/fast/dom/shadow/event-path.html
index d6bce6327aa8ed449fb0b786998269d3fbfb9893..c6d2f31b71e35ba72617375ca5d72c96c4c3db8f 100644
--- a/LayoutTests/fast/dom/shadow/event-path.html
+++ b/LayoutTests/fast/dom/shadow/event-path.html
@@ -24,8 +24,12 @@ b.addEventListener('click', function(event) {
debug(dumpNodeList(event.path));
});
var clickEvent = document.createEvent("MouseEvents");
+debug("Makes sure that event.path is empty before dispatching the event.");
+debug(dumpNodeList(clickEvent.path));
clickEvent.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
b.dispatchEvent(clickEvent);
+debug("Makes sure that event.path isn't emptified after dispatching the event.");
+debug(dumpNodeList(clickEvent.path));
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/event-path-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698