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

Side by Side Diff: LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/definition-construction-algorithm-svg-namespace-name-is-null.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 namespace is SVG namespace and name is null then error must be thrown< /title>
5 <meta name="author" title="Vasiliy Degtyarev" href="mailto:vasya@unipro.ru">
6 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
7 <meta name="assert" content="If namespace is SVG namespace and name is null then error must be thrown">
8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements">
9 <script src="../../../../resources/testharness.js"></script>
10 <script src="../../../../resources/testharnessreport.js"></script>
11 <script src="../testcommon.js"></script>
12 <link rel="stylesheet" href="../../../../resources/testharness.css">
13 </head>
14 <body>
15 <div id="log"></div>
16 <script>
17 test(function() {
18 var doc = newHTMLDocument();
19 var proto = Object.create(SVGElement.prototype);
20 assert_throws('NotSupportedError', function() {
21 doc.registerElement('x-svg-a', {prototype: proto});
22 }, 'Exception should be thrown in case of attempt to register ' +
23 'a custom element with SVG namespace and name is not specified');
24 }, 'Error should be thrown if namespace is SVG and local name is not specified') ;
25
26
27 test(function() {
28 var doc = newHTMLDocument();
29 var proto = Object.create(SVGElement.prototype);
30 assert_throws('NotSupportedError', function() {
31 doc.registerElement('x-svg-b', {prototype: proto, extends: null});
32 }, 'Exception should be thrown in case of attempt to register ' +
33 'a custom element with SVG namespace and name is null');
34 }, 'Error should be thrown if namespace is SVG and local name is null');
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698