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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/unresolved-elements-interface-svg-element.html

Issue 1854003004: Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Unresolved element interface must be SVGElement, if the namespace is SVG Namespace</title> 4 <title>Unresolved element interface must be SVGElement, if the namespace is SVG Namespace</title>
5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> 5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
6 <meta name="author" title="Vasiliy Degtyarev" href="mailto:vasya@unipro.ru"> 6 <meta name="author" title="Vasiliy Degtyarev" href="mailto:vasya@unipro.ru">
7 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru "> 7 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru ">
8 <meta name="assert" content="When an unresolved element is created, it's element interface must be SVGElement if the namespace is SVG Namespace"> 8 <meta name="assert" content="When an unresolved element is created, it's element interface must be SVGElement if the namespace is SVG Namespace">
9 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements"> 9 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements">
10 <script src="../../../../resources/testharness.js"></script> 10 <script src="../../../../resources/testharness.js"></script>
11 <script src="../../../../resources/testharnessreport.js"></script> 11 <script src="../../../../resources/testharnessreport.js"></script>
12 <script src="../testcommon.js"></script> 12 <script src="../testcommon.js"></script>
13 <link rel="stylesheet" href="../../../../resources/testharness.css">
14 </head> 13 </head>
15 <body> 14 <body>
16 <div id="log"></div> 15 <div id="log"></div>
17 <script> 16 <script>
18 test(function() { 17 test(function() {
19 var doc = newHTMLDocument(); 18 var doc = newHTMLDocument();
20 var xsvg = doc.createElementNS(SVG_NAMESPACE, 'x-svg'); 19 var xsvg = doc.createElementNS(SVG_NAMESPACE, 'x-svg');
21 20
22 assert_class_string(xsvg, 'SVGElement', 'Unresolved custom element must be a SVG element'); 21 assert_class_string(xsvg, 'SVGElement', 'Unresolved custom element must be a SVG element');
23 }, 'Test interface of unresolved element with valid name, created by Document.cr eateElementNS()'); 22 }, 'Test interface of unresolved element with valid name, created by Document.cr eateElementNS()');
(...skipping 15 matching lines...) Expand all
39 var xsvg = doc.getElementById('x-svg-element'); 38 var xsvg = doc.getElementById('x-svg-element');
40 39
41 assert_not_equals(xsvg, null, 'Unresolved custom element should not be null' ); 40 assert_not_equals(xsvg, null, 'Unresolved custom element should not be null' );
42 41
43 assert_class_string(xsvg, 'SVGElement', 42 assert_class_string(xsvg, 'SVGElement',
44 'Unresolved custom element must be a SVG element'); 43 'Unresolved custom element must be a SVG element');
45 }, 'Test interface of unresolved element in loaded HTML document with embedded S VG elements'); 44 }, 'Test interface of unresolved element in loaded HTML document with embedded S VG elements');
46 </script> 45 </script>
47 </body> 46 </body>
48 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698