Skip to content

Commit 880364b

Browse files
committed
Enable template tests
All tests using iframes can't currently pass, same for innerHTML-related tests with <template> elements. The latter contradicts the spec, see the links below. servo/html5ever#164 w3c/DOM-Parsing#1
1 parent e2b8feb commit 880364b

19 files changed

+135
-1
lines changed

tests/wpt/metadata/html/semantics/scripting-1/the-template-element/__dir__.ini

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
disabled: XHTML
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
disabled: XHTML
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[template-clone-children.html]
2+
type: testharness
3+
[Clone template node. Test call to cloneNode(true)]
4+
expected: FAIL
5+
6+
[Clone template node. Test call to cloneNode() with the default parameter (false by default)]
7+
expected: FAIL
8+
9+
[Clone template node. Test call to cloneNode(false)]
10+
expected: FAIL
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[templates-copy-document-owner.html]
2+
type: testharness
3+
expected: CRASH
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[template-contents-owner-document-type.html]
2+
type: testharness
3+
[The template contents owner document type is HTML document (case when document has browsing context and the template is created by HTML parser)]
4+
expected: FAIL
5+
6+
[The template contents owner document type is HTML document (case when document has browsing context and the template is created by createElement())]
7+
expected: FAIL
8+
9+
[The template contents owner document type is HTML document (case when document has no browsing context and the template is created by createElement())]
10+
expected: FAIL
11+
12+
[The template contents owner document type is HTML document (case when document has no browsing context and the template is created via innerHTML)]
13+
expected: FAIL
14+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[template-contents-owner-test-001.html]
2+
type: testharness
3+
[Test the template contents owner document when enclosing document has no browsing content. Template element is created by createElement()]
4+
expected: FAIL
5+
6+
[Test the template contents owner document when enclosing document has no browsing content. Template element is created by innerHTML]
7+
expected: FAIL
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[template-contents-owner-test-002.html]
2+
type: testharness
3+
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by createElement()]
4+
expected: FAIL
5+
6+
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created via innerHTML]
7+
expected: FAIL
8+
9+
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by HTML parser]
10+
expected: FAIL
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[template-contents.html]
2+
type: testharness
3+
expected: CRASH
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[innerhtml.html]
2+
type: testharness
3+
[innerHTML of template element replaces all referenced by the content attribute]
4+
expected: FAIL
5+
6+
[innerHTML of template element replaces all referenced by the content attribute. Test nested template]
7+
expected: FAIL
8+
9+
[innerHTML of template element replaces all referenced by the content attribute. Test loading of HTML document from a file]
10+
expected: FAIL
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[outerhtml.html]
2+
type: testharness
3+
[Template contents should be serialized instead of template element if serializing template element]
4+
expected: FAIL
5+
6+
[Template contents should be serialized instead of template element if serializing template element. Test nested template]
7+
expected: FAIL
8+
9+
[Template contents should be serialized instead of template element if serializing template element. Test serializing whole document]
10+
expected: FAIL
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[content-attribute.html]
2+
type: testharness
3+
[Content attribute of template element is read-only. Test empty template]
4+
expected: FAIL
5+
6+
[Content attribute of template element is read-only. Test not empty template populated by appendchild()]
7+
expected: FAIL
8+
9+
[Content attribute of template element is read-only. Test not empty template populated by innerHTML]
10+
expected: FAIL
11+
12+
[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't make content IDL attribute writable]
13+
expected: FAIL
14+
15+
[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't affect content IDL attribute]
16+
expected: FAIL
17+
18+
[Content attribute of template element is read-only. Text value of content attribute of template tag should be ignored, when loading document from a file]
19+
expected: FAIL
20+
21+
[Content attribute of template element is read-only. Test content attribute of a document loaded from a file]
22+
expected: FAIL
23+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[node-document-changes.html]
2+
type: testharness
3+
expected: CRASH
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[template-as-a-descendant.html]
2+
type: testharness
3+
[Template element as a descendant of the FRAMESET element. Template element is created by innerHTML]
4+
expected: FAIL
5+
6+
[Template element as an indirect descendant of the FRAMESET element. Template element is created by innerHTML]
7+
expected: FAIL
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[template-content-node-document.html]
2+
type: testharness
3+
expected: CRASH
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[template-content.html]
2+
type: testharness
3+
expected: TIMEOUT
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[template-descendant-body.html]
2+
type: testharness
3+
[Template element as a descendant of the body element. Test loading from a file]
4+
expected: FAIL
5+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[template-descendant-frameset.html]
2+
type: testharness
3+
[Template element as a descendant of the frameset element. Test loading from a file]
4+
expected: FAIL
5+
6+
[Template element as a descendant of the frameset element. Test template element is assigned to frameset's innerHTML)]
7+
expected: FAIL
8+
9+
[Template element as a descendant of the frameset element. Test template element appended to frameset by appendChild()]
10+
expected: FAIL
11+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[template-descendant-head.html]
2+
type: testharness
3+
[Template element as a descendant of the head element. Test loading from a file]
4+
expected: FAIL
5+

0 commit comments

Comments
 (0)