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,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