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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html

Issue 1958543002: requestAutocomplete: remove from web platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document-createEvent-expected.txt Created 4 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
Index: third_party/WebKit/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html b/third_party/WebKit/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html
deleted file mode 100644
index 7b0006ffafa9435cc804a5856bbcd60f493a520e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/constructors/autocomplete-error-event-constructor.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-
-description("This tests the constructor for the AutocompleteErrorEvent DOM class.");
-
-if (!window.AutocompleteErrorEvent) {
- testFailed('no AutocompleteErrorEvent');
- finishJSTest();
-} else {
- // No initializer is passed.
- shouldBe("new AutocompleteErrorEvent('eventType').bubbles", "false");
- shouldBe("new AutocompleteErrorEvent('eventType').cancelable", "false");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType').reason", "");
-
- // bubbles is passed.
- shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: false }).bubbles", "false");
- shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true }).bubbles", "true");
-
- // cancelable is passed.
- shouldBe("new AutocompleteErrorEvent('eventType', { cancelable: false }).cancelable", "false");
- shouldBe("new AutocompleteErrorEvent('eventType', { cancelable: true }).cancelable", "true");
-
- // reason is passed.
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'cancel' }).reason", "cancel");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: '' }).reason", "");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'disabled' }).reason", "disabled");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: 'invalid' }).reason", "invalid");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { reason: undefined }).reason", "");
-
- // Invalid reason throws exception
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: 'doremi' })");
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: null })");
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: false })");
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: true })");
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: 12345 })");
- shouldThrow("new AutocompleteErrorEvent('eventType', { reason: NaN })");
-
- // All initializers are passed.
- shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: '' }).bubbles", "true");
- shouldBe("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'cancel' }).cancelable", "true");
- shouldBeEqualToString("new AutocompleteErrorEvent('eventType', { bubbles: true, cancelable: true, reason: 'disabled' }).reason", "disabled");
-}
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698