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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js

Issue 2053503003: Clean up layout tests in LayoutTests/shadow-dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js b/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
index 7aeb5fc875eda3d4f2a0ed8470f8ab421ec8db0f..c11861a1321ad0fb2cd6a5336233d5f9105bb0b8 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
+++ b/third_party/WebKit/LayoutTests/shadow-dom/resources/shadow-dom.js
@@ -117,8 +117,8 @@ function dispatchEventWithLog(nodes, target, event) {
attachedNodes.push(node);
node.addEventListener(event.type, (e) => {
log.push([id,
- event.relatedTarget ? labelFor(event.relatedTarget) : null,
- event.composedPath().map((n) => {
+ e.relatedTarget ? labelFor(e.relatedTarget) : null,
+ e.composedPath().map((n) => {
return labelFor(n);
})]);
});
@@ -147,8 +147,8 @@ function dispatchUAEventWithLog(nodes, target, eventType, callback) {
attachedNodes.push(node);
node.addEventListener(eventType, (e) => {
log.push([id,
- event.relatedTarget ? labelFor(event.relatedTarget) : null,
- event.composedPath().map((n) => {
+ e.relatedTarget ? labelFor(e.relatedTarget) : null,
+ e.composedPath().map((n) => {
return labelFor(n);
})]);
});
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/default-slots.html ('k') | third_party/WebKit/LayoutTests/shadow-dom/slots-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698