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

Unified Diff: LayoutTests/fast/events/event-creation.html

Issue 250933005: Make createEvent do case-insensitive matches (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Do not use startsWith for Event(s) Created 6 years, 7 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/events/event-creation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/event-creation.html
diff --git a/LayoutTests/fast/events/event-creation.html b/LayoutTests/fast/events/event-creation.html
index 21c26d3b95c8b8807e47f3cb2faa66607757b8c6..67fa2227319ca767406ce88287d9ed2198eee99d 100644
--- a/LayoutTests/fast/events/event-creation.html
+++ b/LayoutTests/fast/events/event-creation.html
@@ -13,14 +13,20 @@
// Event
shouldBeTrue("document.createEvent('Event') instanceof window.Event");
shouldBeTrue("document.createEvent('Event').constructor === window.Event");
+ shouldBeTrue("document.createEvent('EvENt') instanceof window.Event");
+ shouldBeTrue("document.createEvent('EvENt').constructor === window.Event");
// Events (Event alternative)
shouldBeTrue("document.createEvent('Events') instanceof window.Event");
shouldBeTrue("document.createEvent('Events').constructor === window.Event");
+ shouldBeTrue("document.createEvent('EvENts') instanceof window.Event");
+ shouldBeTrue("document.createEvent('EvENts').constructor === window.Event");
// HTMLEvents (Event alternative)
shouldBeTrue("document.createEvent('HTMLEvents') instanceof window.Event");
shouldBeTrue("document.createEvent('HTMLEvents').constructor === window.Event");
+ shouldBeTrue("document.createEvent('HTMLEvENts') instanceof window.Event");
+ shouldBeTrue("document.createEvent('HTMLEvENts').constructor === window.Event");
// CompositionEvent
shouldBeTrue("document.createEvent('CompositionEvent') instanceof window.CompositionEvent");
@@ -31,6 +37,9 @@
shouldBeTrue("document.createEvent('CustomEvent') instanceof window.CustomEvent");
shouldBeTrue("document.createEvent('CustomEvent') instanceof window.Event");
shouldBeTrue("document.createEvent('CustomEvent').constructor === window.CustomEvent");
+ shouldBeTrue("document.createEvent('CustomEvENt') instanceof window.CustomEvent");
+ shouldBeTrue("document.createEvent('CustomEvENt') instanceof window.Event");
+ shouldBeTrue("document.createEvent('CustomEvENt').constructor === window.CustomEvent");
// ErrorEvent
shouldBeTrue("document.createEvent('ErrorEvent') instanceof window.ErrorEvent");
@@ -64,12 +73,20 @@
shouldBeTrue("document.createEvent('MouseEvent') instanceof window.UIEvent");
shouldBeTrue("document.createEvent('MouseEvent') instanceof window.Event");
shouldBeTrue("document.createEvent('MouseEvent').constructor === window.MouseEvent");
+ shouldBeTrue("document.createEvent('MouseEvENt') instanceof window.MouseEvent");
+ shouldBeTrue("document.createEvent('MouseEvENt') instanceof window.UIEvent");
+ shouldBeTrue("document.createEvent('MouseEvENt') instanceof window.Event");
+ shouldBeTrue("document.createEvent('MouseEvENt').constructor === window.MouseEvent");
// MouseEvents (MouseEvent alternative)
shouldBeTrue("document.createEvent('MouseEvents') instanceof window.MouseEvent");
shouldBeTrue("document.createEvent('MouseEvents') instanceof window.UIEvent");
shouldBeTrue("document.createEvent('MouseEvents') instanceof window.Event");
shouldBeTrue("document.createEvent('MouseEvents').constructor === window.MouseEvent");
+ shouldBeTrue("document.createEvent('MouseEvENts') instanceof window.MouseEvent");
+ shouldBeTrue("document.createEvent('MouseEvENts') instanceof window.UIEvent");
+ shouldBeTrue("document.createEvent('MouseEvENts') instanceof window.Event");
+ shouldBeTrue("document.createEvent('MouseEvENts').constructor === window.MouseEvent");
// MutationEvent
shouldBeTrue("document.createEvent('MutationEvent') instanceof window.MutationEvent");
@@ -111,11 +128,17 @@
shouldBeTrue("document.createEvent('UIEvent') instanceof window.UIEvent");
shouldBeTrue("document.createEvent('UIEvent') instanceof window.Event");
shouldBeTrue("document.createEvent('UIEvent').constructor === window.UIEvent");
+ shouldBeTrue("document.createEvent('UIEvENt') instanceof window.UIEvent");
+ shouldBeTrue("document.createEvent('UIEvENt') instanceof window.Event");
+ shouldBeTrue("document.createEvent('UIEvENt').constructor === window.UIEvent");
// UIEvents (UIEvent alternative)
shouldBeTrue("document.createEvent('UIEvents') instanceof window.UIEvent");
shouldBeTrue("document.createEvent('UIEvents') instanceof window.Event");
shouldBeTrue("document.createEvent('UIEvents').constructor === window.UIEvent");
+ shouldBeTrue("document.createEvent('UIEvENts') instanceof window.UIEvent");
+ shouldBeTrue("document.createEvent('UIEvENts') instanceof window.Event");
+ shouldBeTrue("document.createEvent('UIEvENts').constructor === window.UIEvent");
// TransitionEvent
shouldBeTrue("document.createEvent('TransitionEvent') instanceof window.TransitionEvent");
« no previous file with comments | « no previous file | LayoutTests/fast/events/event-creation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698