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

Unified Diff: LayoutTests/fast/dom/custom/type-extension-is-null.html

Issue 476713002: Make |extends| option in custom element behave correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modifying equality operator Created 6 years, 4 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/dom/custom/type-extension-is-null-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/custom/type-extension-is-null.html
diff --git a/LayoutTests/fast/dom/custom/type-extension-is-null.html b/LayoutTests/fast/dom/custom/type-extension-is-null.html
new file mode 100644
index 0000000000000000000000000000000000000000..5c23acbdbab2e32050b06a056e804cc199f7df3b
--- /dev/null
+++ b/LayoutTests/fast/dom/custom/type-extension-is-null.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<body>
+<script>
+test(function() {
+ var A = document.registerElement('x-foo', {extends: null, prototype: null});
+ assert_equals(new A().outerHTML, '<x-foo></x-foo>',
+ 'type extensions should have an "is" attribute');
dominicc (has gone to gerrit) 2014/08/15 07:00:19 The assertion arguments seem to contradict the ass
deepak.sa 2014/08/18 12:50:27 Assertion message updated.
+}, 'register a type extension');
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/type-extension-is-null-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698