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

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

Issue 1211973013: update-w3c-deps import using blink d42488bb63a5ac7fd6befd40a9b90fe85cebcc4a: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add flaky/timeout to TestExpectations Created 5 years, 5 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: The template contents owner document (there's browsing co ntext)</title> 4 <title>HTML Templates: The template contents owner document (there's browsing co ntext)</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="assert" content="If template's enclosing document has browsing conte xt, then templates content owner must be a new Document node without browsing co ntext"> 6 <meta name="assert" content="If template's enclosing document has browsing conte xt, then templates content owner must be a new Document node without browsing co ntext">
7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#def initions"> 7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#def initions">
8 <script src="../../../../../../../resources/testharness.js"></script> 8 <script src="../../../../../../../resources/testharness.js"></script>
9 <script src="../../../../../../../resources/testharnessreport.js"></script> 9 <script src="../../../../../../../resources/testharnessreport.js"></script>
10 <script src='../testcommon.js'></script> 10 <script src='/html/resources/common.js'></script>
11 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"> 11 <link rel="stylesheet" href="../../../../../../../resources/testharness.css">
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 17
18 testInIFrame(null, function(context) { 18 testInIFrame(null, function(context) {
19 var doc = context.iframes[0].contentDocument; 19 var doc = context.iframes[0].contentDocument;
20 var template = doc.createElement('template'); 20 var template = doc.createElement('template');
21 21
22 var div = doc.createElement('div'); 22 var div = doc.createElement('div');
23 div.setAttribute('id', 'div1'); 23 div.setAttribute('id', 'div1');
24 div.innerText = 'Some text';
25 24
26 template.appendChild(div); 25 template.appendChild(div);
27 26
28 doc.body.appendChild(template); 27 doc.body.appendChild(template);
29 28
30 // doc has browsing context. There should be another document as a template 29 // doc has browsing context. There should be another document as a template
31 // content owner 30 // content owner
32 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template owner document'); 31 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template owner document');
33 32
34 }, 'The template contents owner document must be different from template owner d ocument,' + 33 }, 'The template contents owner document must be different from template owner d ocument,' +
(...skipping 25 matching lines...) Expand all
60 // doc has browsing context. There should be another document as a template 59 // doc has browsing context. There should be another document as a template
61 // content owner 60 // content owner
62 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template owner document'); 61 assert_not_equals(template.content.ownerDocument, doc, 'Wrong template owner document');
63 62
64 }, 'The template contents owner document must be different from template owner d ocument,' + 63 }, 'The template contents owner document must be different from template owner d ocument,' +
65 ' which has browsing context. Template element is created by HTML parser'); 64 ' which has browsing context. Template element is created by HTML parser');
66 65
67 </script> 66 </script>
68 </body> 67 </body>
69 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698