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> |