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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html

Issue 2634323002: Import wpt@aae3e1b6ffb8b24acb777450933ceeafd97e3655 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 11 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>HTML Templates: Template element as a descendant of the body element.</ti tle> 4 <title>HTML Templates: Template element as a descendant of the body element.</ti tle>
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="Template element can be a descendant of the body el ement"> 7 <meta name="assert" content="Template element can be a descendant of the body el ement">
8 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#tem plate-element"> 8 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-template-elem ent">
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='/html/resources/common.js'></script> 11 <script src='/html/resources/common.js'></script>
12 </head> 12 </head>
13 <body> 13 <body>
14 <div id="log"></div> 14 <div id="log"></div>
15 <script type="text/javascript"> 15 <script type="text/javascript">
16 16
17 function templateIsAChild(element) { 17 function templateIsAChild(element) {
18 element.innerHTML = '<template>some text</template>'; 18 element.innerHTML = '<template>some text</template>';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 parameters = [['Template element as an indirect descendant of the BODY element. ' + 86 parameters = [['Template element as an indirect descendant of the BODY element. ' +
87 'Template element is created by innerHTML', 87 'Template element is created by innerHTML',
88 doc.body], 88 doc.body],
89 ['Template element as an indirect descendant of the HEAD element. ' + 89 ['Template element as an indirect descendant of the HEAD element. ' +
90 'Template element is created by innerHTML', 90 'Template element is created by innerHTML',
91 doc.head], 91 doc.head],
92 ]; 92 ];
93 generate_tests(templateIsAnIndirectChild, parameters, 93 generate_tests(templateIsAnIndirectChild, parameters,
94 'Template element as an indirect descendant of the HEAD, BODY and FRAMES ET elements'); 94 'Template element as an indirect descendant of the HEAD, BODY and FRAMES ET elements');
95 95
96 parameters = [['Template element as a descendant of the FRAMESET element. ' + 96 parameters = [['Template element as an indirect descendant of the FRAMESET eleme nt. ' +
97 'Template element is created by innerHTML', 97 'Template element is created by innerHTML',
98 frameset], 98 frameset],
99 ]; 99 ];
100 generate_tests(templateIsDisallowedAsAnIndirectChild, parameters, 100 generate_tests(templateIsDisallowedAsAnIndirectChild, parameters,
101 'Template element should be disallowed as an indirect descendant of the FRAM ESET elements'); 101 'Template element should be disallowed as an indirect descendant of the FRAM ESET elements');
102 102
103 103
104 104
105 parameters = [['Template element as a descendant of the BODY element. ' + 105 parameters = [['Template element as a descendant of the BODY element. ' +
106 'Template element is appended by appendChild()', 106 'Template element is appended by appendChild()',
(...skipping 19 matching lines...) Expand all
126 ['Template element as an indirect descendant of the FRAMESET elem ent. ' + 126 ['Template element as an indirect descendant of the FRAMESET elem ent. ' +
127 'Template element is appended by appendChild()', 127 'Template element is appended by appendChild()',
128 doc, frameset] 128 doc, frameset]
129 ]; 129 ];
130 generate_tests(templateIsAnAppendedIndirectChild, parameters, 130 generate_tests(templateIsAnAppendedIndirectChild, parameters,
131 'Template element as a descendant of the HEAD, BODY and FRAMESET element s'); 131 'Template element as a descendant of the HEAD, BODY and FRAMESET element s');
132 132
133 </script> 133 </script>
134 </body> 134 </body>
135 </html> 135 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698