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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html

Issue 1305983002: web-platform-tests: Skip tests for <template>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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>HTML Templates: The template contents owner document (no browsing context )</title>
5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
6 <meta name="assert" content="Even if template's enclosing document has no browsi ng context, it gets its own template contents owner">
7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#def initions">
8 <script src="../../../../../../../resources/testharness.js"></script>
9 <script src="../../../../../../../resources/testharnessreport.js"></script>
10 <script src='/html/resources/common.js'></script>
11 <link rel="stylesheet" href="../../../../../../../resources/testharness.css">
12 </head>
13 <body>
14 <div id="log"></div>
15 <script type="text/javascript">
16
17
18 test(function() {
19 var doc = newHTMLDocument();
20 var template = doc.createElement('template');
21
22 doc.body.appendChild(template);
23
24 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template conte nt owner');
25
26 }, 'Test the template contents owner document when enclosing document has '
27 + 'no browsing content. Template element is created by createElement()');
28
29
30
31 test(function() {
32 var doc = newHTMLDocument();
33
34 doc.body.innerHTML = '<template><div>some text</div></template>';
35
36 var template = doc.querySelector('template');
37
38 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template conte nt owner');
39
40 }, 'Test the template contents owner document when enclosing document has '
41 + 'no browsing content. Template element is created by innerHTML');
42
43 </script>
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698