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

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: Updated TestExpectations 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 | « LayoutTests/TestExpectations ('k') | 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..3b3f6c156183376d339bbfa9f2525ed19cbff410
--- /dev/null
+++ b/LayoutTests/fast/dom/custom/type-extension-is-null.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<body>
+<script>
+var A = document.registerElement('x-foo', {extends: null, prototype: null});
dominicc (has gone to gerrit) 2014/08/19 01:03:06 Move this back inside the test since it is specifi
deepak.sa 2014/08/19 12:34:25 Done.
+
+test(function() {
+ assert_equals(new A().outerHTML, '<x-foo></x-foo>',
+ 'type extension from null should be treated as if "extends" is not given');
+}, 'localName should not be "null" and type extension should not have "is" attribute');
dominicc (has gone to gerrit) 2014/08/19 01:03:06 I think the test name and the assertion message sh
deepak.sa 2014/08/19 12:34:25 Done.
+
+test(function() {
+ assert_equals(new A().localName, 'x-foo',
dominicc (has gone to gerrit) 2014/08/19 01:03:06 I think this should be two assertions in one test
deepak.sa 2014/08/19 12:34:25 Done.
+ 'localName should be set to TYPE if extends is null');
+}, 'If extends is null, localName is set to TYPE');
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | 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