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

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: 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 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 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.
7
8 test(function() {
9 assert_equals(new A().outerHTML, '<x-foo></x-foo>',
10 'type extension from null should be treated as if "extends" is not given ');
11 }, 'localName should not be "null" and type extension should not have "is" attri bute');
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.
12
13 test(function() {
14 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.
15 'localName should be set to TYPE if extends is null');
16 }, 'If extends is null, localName is set to TYPE');
17 </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