OLD | NEW |
---|---|
(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> | |
OLD | NEW |