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

Side by Side Diff: LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/definition-construction-algorithm-no-interface-for-name.html

Issue 560893005: First checked-in import of the W3C's test suites. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add new expectations for newly failing w3c tests Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>If element interface for name doesn't exists then error must be thrown</t itle>
5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
6 <meta name="assert" content="If NAME was provided and is not null and if element interface for the name and namespace does not exist or is an interface for a cu stom element, set ERROR to InvalidName and stop">
7 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements">
8 <script src="../../../../resources/testharness.js"></script>
9 <script src="../../../../resources/testharnessreport.js"></script>
10 <script src="../testcommon.js"></script>
11 <link rel="stylesheet" href="../../../../resources/testharness.css">
12 </head>
13 <body>
14 <div id="log"></div>
15 <script>
16 test(function() {
17 var doc = newHTMLDocument();
18 doc.registerElement('x-a');
19 assert_throws('NotSupportedError', function() {
20 doc.registerElement('x-b', {extends: 'x-a'});
21 }, 'Exception should be thrown in case of attempt to register ' +
22 'a custom element which extends another custom element');
23 }, 'Exception should be thrown in case of attempt to register ' +
24 'a custom element which extends another custom element');
25 </script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698