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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/custom/create-element-second-arg.html

Issue 2477713003: Custom Elements: Check Definition in createElement, Create Customized Built-in Elements Sync (Closed)
Patch Set: V1 definition check in document::createElement Created 4 years, 1 month 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/dom/custom/create-element-second-arg.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/custom/create-element-second-arg.html b/third_party/WebKit/LayoutTests/fast/dom/custom/create-element-second-arg.html
deleted file mode 100644
index 09de9900395dcda77e0080c676eb51779a012129..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/custom/create-element-second-arg.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<!doctype html>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script>
-test(() => {
- var XButton = document.registerElement('x-button', {extends: 'button'});
- var elem = document.createElement('button', 'x-button');
- assert_equals(elem.constructor, XButton);
-
- elem = document.createElement('button', {is: 'x-button'});
- assert_equals(elem.constructor, XButton);
-
- elem = document.createElement('button', {toString: () => 'x-button'});
- assert_equals(elem.constructor, XButton);
-}, "Test for Issue 637353: 2nd arg of document.createElement should be an object");
-</script>

Powered by Google App Engine
This is Rietveld 408576698