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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/unresolved-elements-interface-html-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 HTMLElement, if the namespace is HTM L Namespace</title> 4 <title>Unresolved element interface must be HTMLElement, if the namespace is HTM L 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="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru "> 6 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru ">
7 <meta name="assert" content="When an unresolved element is created, it's element interface must be HTMLElement, if the namespace is HTML Namespace"> 7 <meta name="assert" content="When an unresolved element is created, it's element interface must be HTMLElement, if the namespace is HTML Namespace">
8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements"> 8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements">
9 <script src="../../../../resources/testharness.js"></script> 9 <script src="../../../../resources/testharness.js"></script>
10 <script src="../../../../resources/testharnessreport.js"></script> 10 <script src="../../../../resources/testharnessreport.js"></script>
11 <script src="../testcommon.js"></script> 11 <script src="../testcommon.js"></script>
12 <link rel="stylesheet" href="../../../../resources/testharness.css">
13 </head> 12 </head>
14 <body> 13 <body>
15 <div id="log"></div> 14 <div id="log"></div>
16 <script> 15 <script>
17 test(function() { 16 test(function() {
18 var doc = newHTMLDocument(); 17 var doc = newHTMLDocument();
19 doc.body.innerHTML = '<x-a id="x-a"></x-a>'; 18 doc.body.innerHTML = '<x-a id="x-a"></x-a>';
20 var customElement = doc.querySelector('#x-a'); 19 var customElement = doc.querySelector('#x-a');
21 20
22 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null'); 21 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null');
(...skipping 25 matching lines...) Expand all
48 var customElement = doc.getElementById('x-element'); 47 var customElement = doc.getElementById('x-element');
49 48
50 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null'); 49 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null');
51 50
52 assert_class_string(customElement, 'HTMLElement', 51 assert_class_string(customElement, 'HTMLElement',
53 'Unresolved custom element must be a HTML element'); 52 'Unresolved custom element must be a HTML element');
54 }, 'Test unresolved element interface in loaded HTML document'); 53 }, 'Test unresolved element interface in loaded HTML document');
55 </script> 54 </script>
56 </body> 55 </body>
57 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698