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.

https://github.com/servo/html5ever/issues/164
https://github.com/w3c/DOM-Parsing/issues/1
This commit is contained in:
Anthony Ramine 2015-09-02 23:50:20 +02:00
parent e2b8febfd5
commit 880364b56d
19 changed files with 135 additions and 1 deletions

View file

@ -0,0 +1,11 @@
[template-clone-children.html]
type: testharness
[Clone template node. Test call to cloneNode(true)]
expected: FAIL
[Clone template node. Test call to cloneNode() with the default parameter (false by default)]
expected: FAIL
[Clone template node. Test call to cloneNode(false)]
expected: FAIL

View file

@ -0,0 +1,3 @@
[templates-copy-document-owner.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,14 @@
[template-contents-owner-document-type.html]
type: testharness
[The template contents owner document type is HTML document (case when document has browsing context and the template is created by HTML parser)]
expected: FAIL
[The template contents owner document type is HTML document (case when document has browsing context and the template is created by createElement())]
expected: FAIL
[The template contents owner document type is HTML document (case when document has no browsing context and the template is created by createElement())]
expected: FAIL
[The template contents owner document type is HTML document (case when document has no browsing context and the template is created via innerHTML)]
expected: FAIL

View file

@ -0,0 +1,8 @@
[template-contents-owner-test-001.html]
type: testharness
[Test the template contents owner document when enclosing document has no browsing content. Template element is created by createElement()]
expected: FAIL
[Test the template contents owner document when enclosing document has no browsing content. Template element is created by innerHTML]
expected: FAIL

View file

@ -0,0 +1,11 @@
[template-contents-owner-test-002.html]
type: testharness
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by createElement()]
expected: FAIL
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created via innerHTML]
expected: FAIL
[The template contents owner document must be different from template owner document, which has browsing context. Template element is created by HTML parser]
expected: FAIL

View file

@ -0,0 +1,3 @@
[template-contents.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,11 @@
[innerhtml.html]
type: testharness
[innerHTML of template element replaces all referenced by the content attribute]
expected: FAIL
[innerHTML of template element replaces all referenced by the content attribute. Test nested template]
expected: FAIL
[innerHTML of template element replaces all referenced by the content attribute. Test loading of HTML document from a file]
expected: FAIL

View file

@ -0,0 +1,11 @@
[outerhtml.html]
type: testharness
[Template contents should be serialized instead of template element if serializing template element]
expected: FAIL
[Template contents should be serialized instead of template element if serializing template element. Test nested template]
expected: FAIL
[Template contents should be serialized instead of template element if serializing template element. Test serializing whole document]
expected: FAIL

View file

@ -0,0 +1,23 @@
[content-attribute.html]
type: testharness
[Content attribute of template element is read-only. Test empty template]
expected: FAIL
[Content attribute of template element is read-only. Test not empty template populated by appendchild()]
expected: FAIL
[Content attribute of template element is read-only. Test not empty template populated by innerHTML]
expected: FAIL
[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't make content IDL attribute writable]
expected: FAIL
[Content attribute of template element is read-only. Test that custom content attribute named 'content' doesn't affect content IDL attribute]
expected: FAIL
[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]
expected: FAIL
[Content attribute of template element is read-only. Test content attribute of a document loaded from a file]
expected: FAIL

View file

@ -0,0 +1,3 @@
[node-document-changes.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,8 @@
[template-as-a-descendant.html]
type: testharness
[Template element as a descendant of the FRAMESET element. Template element is created by innerHTML]
expected: FAIL
[Template element as an indirect descendant of the FRAMESET element. Template element is created by innerHTML]
expected: FAIL

View file

@ -0,0 +1,3 @@
[template-content-node-document.html]
type: testharness
expected: CRASH

View file

@ -0,0 +1,3 @@
[template-content.html]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[template-descendant-body.html]
type: testharness
[Template element as a descendant of the body element. Test loading from a file]
expected: FAIL

View file

@ -0,0 +1,11 @@
[template-descendant-frameset.html]
type: testharness
[Template element as a descendant of the frameset element. Test loading from a file]
expected: FAIL
[Template element as a descendant of the frameset element. Test template element is assigned to frameset's innerHTML)]
expected: FAIL
[Template element as a descendant of the frameset element. Test template element appended to frameset by appendChild()]
expected: FAIL

View file

@ -0,0 +1,5 @@
[template-descendant-head.html]
type: testharness
[Template element as a descendant of the head element. Test loading from a file]
expected: FAIL