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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import 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/imported/wpt/dom/events/EventListenerOptions-capture.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
index 377b6c77e31775fb508c8e87135660934e76cc92..f72cf3ca5463f1306c12fb137b84f693345466dc 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/dom/events/EventListenerOptions-capture.html
@@ -16,9 +16,9 @@ function testCaptureValue(captureValue, expectedValue) {
handlerPhase = e.eventPhase;
}
document.addEventListener('test', handler, captureValue);
- document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+ document.body.dispatchEvent(new Event('test', {bubbles: true}));
document.removeEventListener('test', handler, captureValue);
- document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+ document.body.dispatchEvent(new Event('test', {bubbles: true}));
assert_equals(handlerPhase, expectedValue, "Incorrect event phase for value: " + JSON.stringify(captureValue));
}
@@ -72,7 +72,7 @@ function testOptionEquality(addOptionValue, removeOptionValue, expectedEquality)
}
document.addEventListener('test', handler, addOptionValue);
document.removeEventListener('test', handler, removeOptionValue);
- document.body.dispatchEvent(new Event('test', {'bubbles': true}));
+ document.body.dispatchEvent(new Event('test', {bubbles: true}));
assert_equals(!handlerInvoked, expectedEquality, "equivalence of options " +
JSON.stringify(addOptionValue) + " and " + JSON.stringify(removeOptionValue));
if (handlerInvoked)

Powered by Google App Engine
This is Rietveld 408576698