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

Side by Side 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: Nit 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <body>
5 <script>
6 test(function() {
7 var A = document.registerElement('x-foo', {extends: null, prototype: null});
8 assert_equals(new A().outerHTML, '<x-foo></x-foo>',
9 'localName should not be "null" and type extension should not have "is" attribute');
10
11 assert_equals(new A().localName, 'x-foo',
12 'localName should be set to TYPE if extends is null');
13
14 }, 'type extension from null should be treated as if "extends" is not given');
15 </script>
OLDNEW
« 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