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

Unified Diff: third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html

Issue 2100403002: calling whenDefined with invalid name should throw SyntaxError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing assert_throws_dom_exception Created 4 years, 5 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/custom-elements/spec/define-element.html
diff --git a/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html b/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
index 8021adb753769bf59684aaaa38a7c938d7fa6192..3dd01c67c9c69339b7b90b0527f8a275c5f4d46a 100644
--- a/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
+++ b/third_party/WebKit/LayoutTests/custom-elements/spec/define-element.html
@@ -12,19 +12,6 @@
'use strict';
-function assert_throws_dom_exception(global_context, code, func, description) {
- let exception;
- assert_throws(code, () => {
- try {
- func.call(this);
- } catch(e) {
- exception = e;
- throw e;
- }
- }, description);
- assert_true(exception instanceof global_context.DOMException, 'DOMException on the appropriate window');
-}
-
test_with_window((w) => {
assert_throws(TypeError.prototype, () => {
w.customElements.define('a-a', 42);

Powered by Google App Engine
This is Rietveld 408576698