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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/init-event-exceptions.html

Issue 1485833004: Drop [LegacyInterfaceTypeChecking] for most init*Event() methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add tests Created 5 years 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 | third_party/WebKit/LayoutTests/fast/events/init-event-exceptions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/init-event-exceptions.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/init-event-exceptions.html b/third_party/WebKit/LayoutTests/fast/events/init-event-exceptions.html
new file mode 100644
index 0000000000000000000000000000000000000000..39ae89fa4addb7dd58f55700a16fbd33043ab747
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/init-event-exceptions.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+description("Tests the type checking of init*Event() methods.");
+shouldThrow("document.createEvent('CompositionEvent').initCompositionEvent('', false, false, {}, '')");
+shouldThrow("document.createEvent('KeyboardEvent').initKeyboardEvent('', false, false, {}, '', 0, false, false, false, false)");
+shouldThrow("document.createEvent('MouseEvent').initMouseEvent('', false, false, null, 0, 0, 0, 0, 0, false, false, false, false, 0, {})");
+shouldThrow("document.createEvent('MouseEvent').initMouseEvent('', false, false, {}, 0, 0, 0, 0, 0, false, false, false, false, 0, null)");
+shouldThrow("document.createEvent('MutationEvent').initMutationEvent('', false, false, {}, '', '', '', 0)");
+shouldThrow("document.createEvent('TextEvent').initTextEvent('', false, false, {}, '')");
+shouldThrow("document.createEvent('UIEvent').initUIEvent('', false, false, {}, 0)");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/init-event-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698