Check in failure expectations for immported/web-platform-tests/html/.

Also, try Slow expectations to some Timeout tests.

BUG=490511
[email protected]

Review URL: https://codereview.chromium.org/1273403004

git-svn-id: svn://svn.chromium.org/blink/trunk@200229 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/third_party/WebKit/LayoutTests/TestExpectations b/third_party/WebKit/LayoutTests/TestExpectations
index 17a9d216..838fbf02 100644
--- a/third_party/WebKit/LayoutTests/TestExpectations
+++ b/third_party/WebKit/LayoutTests/TestExpectations
@@ -249,6 +249,9 @@
 crbug.com/510337 inspector/elements/edit/edit-dom-actions.html [ Slow Timeout ]
 crbug.com/510337 inspector/elements/styles-1/edit-value-url-with-color.html [ Slow ]
 
+# In imported/web-platform/tests/html/, we prefer checking in failure
+# expectation files. The following tests with [ Failure ] don't have failure
+# expectation files because they contain local path names.
 crbug.com/490511 imported/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/023.html [ Crash Timeout ]
 crbug.com/490511 imported/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/026.html [ Crash Timeout ]
 crbug.com/490511 imported/web-platform-tests/html/dom/dynamic-markup-insertion/document-write/047.html [ Timeout ]
@@ -265,35 +268,23 @@
 crbug.com/490511 imported/web-platform-tests/html/semantics/embedded-content/media-elements/location-of-the-media-resource/currentSrc.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formAction_document_address.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/semantics/forms/attributes-common-to-form-controls/formaction.html [ Failure ]
+# script-for-event.html and script-text.html: We can't check in failure results
+# because we also have script-for-event.xhtml and script-text.xhtml.
 crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-for-event.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-script-element/script-text.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html [ Failure Timeout ]
 crbug.com/490511 imported/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html [ Failure ]
 crbug.com/490511 imported/web-platform-tests/html/syntax/parsing/html5lib_tests19.html [ Failure Pass Slow ]
 crbug.com/490511 imported/web-platform-tests/html/syntax/parsing/html5lib_tests2.html [ Failure Pass Slow ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-document-type.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-002.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html [ Failure ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-body.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html [ Failure Timeout ]
-crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html [ Failure Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-document-type.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-002.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-as-a-descendant.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-body.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-frameset.html [ Failure Slow Timeout ]
+crbug.com/490511 imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html [ Failure Slow Timeout ]
 
 crbug.com/505364 imported/web-platform-tests/shadow-dom/elements-and-dom-objects/extensions-to-element-interface/methods/elements-001.html [ Failure ]
 crbug.com/505364 imported/web-platform-tests/shadow-dom/events/event-dispatch/test-001.html [ Failure ]
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt
index 7e48253..35806be5 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/node-document-expected.txt
@@ -1,8 +1,5 @@
+CONSOLE ERROR: line 105: Uncaught ReferenceError: testInIFrame is not defined
 This is a testharness.js-based test.
-FAIL Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test empty template assert_not_equals: Content attribute of template element should not be undefined got disallowed value undefined
-FAIL Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test not empty template assert_not_equals: Content attribute of template element should not be undefined got disallowed value undefined
-FAIL Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test nested templates assert_not_equals: Content attribute of template element should not be undefined got disallowed value undefined
-PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test loading XHTML document from a file 
-PASS Parsing XHTML: Node's node document must be set to that of the element to which it will be appended. Test loading of XHTML document with nested templates from a file 
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes-expected.txt
index e10f7c7..1f7c9969 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/template-child-nodes-expected.txt
@@ -1,7 +1,5 @@
+CONSOLE ERROR: line 68: Uncaught ReferenceError: testInIFrame is not defined
 This is a testharness.js-based test.
-FAIL Child nodes of template element in XHTML documents must be appended to template content assert_equals: Wrong number of template child nodes expected 0 but got 2
-FAIL Child nodes of nested template element in XHTML documents must be appended to template content assert_equals: Wrong number of template child nodes expected 0 but got 3
-PASS Child nodes of template element in XHTML documents must be appended to template content. Test loading XHTML document from a file 
-PASS Child nodes of nested template element in XHTML documents must be appended to template content. Test loading XHTML document from a file 
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
 Harness: the test ran to completion.
 
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml-expected.txt
new file mode 100644
index 0000000..a97d3e9c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-serializing-xhtml-documents/outerhtml-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL Template contents should be serialized instead of template element if serializing template element newXHTMLDocument is not defined
+FAIL Template contents should be serialized instead of template element if serializing template element. Test nested template newXHTMLDocument is not defined
+FAIL Template contents should be serialized instead of template element if serializing template element. Test serializing whole document newXHTMLDocument is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children-expected.txt
new file mode 100644
index 0000000..4b3b61d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/template-clone-children-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL Clone template node. Test call to cloneNode(true) newHTMLDocument is not defined
+FAIL Clone template node. Test call to cloneNode() with the default parameter (false by default) newHTMLDocument is not defined
+FAIL Clone template node. Test call to cloneNode(false) newHTMLDocument is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner-expected.txt
new file mode 100644
index 0000000..a5fbe62
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/additions-to-the-steps-to-clone-a-node/templates-copy-document-owner-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 114: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-expected.txt
new file mode 100644
index 0000000..71130b0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 109: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001-expected.txt
new file mode 100644
index 0000000..1013872
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001-expected.txt
@@ -0,0 +1,5 @@
+This is a testharness.js-based test.
+FAIL Test the template contents owner document when enclosing document has no browsing content. Template element is created by createElement() newHTMLDocument is not defined
+FAIL Test the template contents owner document when enclosing document has no browsing content. Template element is created by innerHTML newHTMLDocument is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml-expected.txt
new file mode 100644
index 0000000..5763030
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/innerhtml-on-templates/innerhtml-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 65: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml-expected.txt
new file mode 100644
index 0000000..85dca41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml-expected.txt
@@ -0,0 +1,6 @@
+This is a testharness.js-based test.
+FAIL Template contents should be serialized instead of template element if serializing template element newHTMLDocument is not defined
+FAIL Template contents should be serialized instead of template element if serializing template element. Test nested template newHTMLDocument is not defined
+FAIL Template contents should be serialized instead of template element if serializing template element. Test serializing whole document newHTMLDocument is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute-expected.txt
new file mode 100644
index 0000000..9a0c672
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/content-attribute-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 89: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes-expected.txt
new file mode 100644
index 0000000..a5fbe62
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/node-document-changes-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 114: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document-expected.txt
new file mode 100644
index 0000000..d3cbbbb8
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-content-node-document-expected.txt
@@ -0,0 +1,5 @@
+CONSOLE ERROR: line 43: Uncaught ReferenceError: testInIFrame is not defined
+This is a testharness.js-based test.
+Harness Error. harness_status.status = 1 , harness_status.message = Uncaught ReferenceError: testInIFrame is not defined
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt
new file mode 100644
index 0000000..519a2f5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt
@@ -0,0 +1,6 @@
+CONSOLE ERROR: line 20: Uncaught ReferenceError: undefined_variable is not defined
+CONSOLE ERROR: line 23: Uncaught SyntaxError: Unexpected token )
+This is a testharness.js-based test.
+FAIL window.onerror - addEventListener assert_false: ran expected false got true
+Harness: the test ran to completion.
+
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt
new file mode 100644
index 0000000..725a647
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt
@@ -0,0 +1,4 @@
+This is a testharness.js-based test.
+FAIL NavigatorLanguage: the most preferred language is the one returned by navigator.language assert_equals: navigator.languages is the most preferred language first expected (string) "en-US" but got (undefined) undefined
+Harness: the test ran to completion.
+