diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 565d49f15c3..d2d65fe522c 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -13705,6 +13705,10 @@ "path": "dom/nodes/Element-getElementsByClassName.html", "url": "/dom/nodes/Element-getElementsByClassName.html" }, + { + "path": "dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html", + "url": "/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html" + }, { "path": "dom/nodes/Element-getElementsByTagName.html", "url": "/dom/nodes/Element-getElementsByTagName.html" @@ -26129,10 +26133,6 @@ "path": "shadow-dom/untriaged/user-interaction/ranges-and-selections/test-002.html", "url": "/shadow-dom/untriaged/user-interaction/ranges-and-selections/test-002.html" }, - { - "path": "subresource-integrity/subresource-integrity.html", - "url": "/subresource-integrity/subresource-integrity.html" - }, { "path": "touch-events/create-touch-touchlist.html", "url": "/touch-events/create-touch-touchlist.html" @@ -35315,7 +35315,7 @@ } ] }, - "rev": "4bba821de44da9ed47c2562f995a0da6eecc177b", + "rev": "4b25d322ac6ed466f992669e5408b15d37d56436", "url_base": "/", "version": 2 } \ No newline at end of file diff --git a/tests/wpt/metadata/XMLHttpRequest/send-entity-body-document.htm.ini b/tests/wpt/metadata/XMLHttpRequest/send-entity-body-document.htm.ini index b66ba511485..0c3aab22ac1 100644 --- a/tests/wpt/metadata/XMLHttpRequest/send-entity-body-document.htm.ini +++ b/tests/wpt/metadata/XMLHttpRequest/send-entity-body-document.htm.ini @@ -1,5 +1,11 @@ [send-entity-body-document.htm] type: testharness + disabled: + if os == "mac": https://github.com/servo/servo/issues/8157 + [XMLHttpRequest: send() - Document] expected: FAIL + [XML document, windows-1252] + expected: FAIL + diff --git a/tests/wpt/metadata/dom/nodes/Document-createElement-namespace.html.ini b/tests/wpt/metadata/dom/nodes/Document-createElement-namespace.html.ini index cc3fa616c7c..dfa51c3bdf2 100644 --- a/tests/wpt/metadata/dom/nodes/Document-createElement-namespace.html.ini +++ b/tests/wpt/metadata/dom/nodes/Document-createElement-namespace.html.ini @@ -1,17 +1,5 @@ [Document-createElement-namespace.html] type: testharness - [Created element's namespace in created XML document] - expected: FAIL - - [Created element's namespace in created XHTML document] - expected: FAIL - - [Created element's namespace in created SVG document] - expected: FAIL - - [Created element's namespace in created MathML document] - expected: FAIL - [Created element's namespace in empty.xhtml] expected: FAIL diff --git a/tests/wpt/metadata/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html.ini b/tests/wpt/metadata/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html.ini new file mode 100644 index 00000000000..f093f1ded77 --- /dev/null +++ b/tests/wpt/metadata/dom/nodes/Element-getElementsByTagName-change-document-HTMLNess.html.ini @@ -0,0 +1,6 @@ +[Element-getElementsByTagName-change-document-HTMLNess.html] + type: testharness + expected: TIMEOUT + [Untitled] + expected: NOTRUN + diff --git a/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/document.title-09.html.ini b/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/document.title-09.html.ini new file mode 100644 index 00000000000..93d736c13e5 --- /dev/null +++ b/tests/wpt/metadata/html/dom/documents/dom-tree-accessors/document.title-09.html.ini @@ -0,0 +1,8 @@ +[document.title-09.html] + type: testharness + [No title element in SVG document] + expected: FAIL + + [Title element not child of SVG root] + expected: FAIL + diff --git a/tests/wpt/metadata/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html.ini b/tests/wpt/metadata/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html.ini index d712924a010..91fd36a7216 100644 --- a/tests/wpt/metadata/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html.ini +++ b/tests/wpt/metadata/html/infrastructure/common-dom-interfaces/collections/htmlallcollection.html.ini @@ -24,3 +24,9 @@ [Test lookup IMG in collection using [\]] expected: FAIL + [Test lookup IMG in collection using .] + expected: FAIL + + [Test lookup tags in collection using .] + expected: FAIL + diff --git a/tests/wpt/metadata/mozilla-sync b/tests/wpt/metadata/mozilla-sync index 23fa30ad660..c30d6257fc1 100644 --- a/tests/wpt/metadata/mozilla-sync +++ b/tests/wpt/metadata/mozilla-sync @@ -1 +1 @@ -0008a0d00ae1a58ba888ba9bec181cd6e16d8b94 \ No newline at end of file +7574a8ec72e121613cb56f2af746f858c02b7181 \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py b/tests/wpt/web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py new file mode 100644 index 00000000000..26d54b9d149 --- /dev/null +++ b/tests/wpt/web-platform-tests/XMLHttpRequest/resources/empty-div-utf8-html.py @@ -0,0 +1,5 @@ +def main(request, response): + headers = [("Content-type", "text/html;charset=utf-8")] + content = "
" + + return headers, content diff --git a/tests/wpt/web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py b/tests/wpt/web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py new file mode 100644 index 00000000000..085867f9510 --- /dev/null +++ b/tests/wpt/web-platform-tests/XMLHttpRequest/resources/img-utf8-html.py @@ -0,0 +1,5 @@ +def main(request, response): + headers = [("Content-type", "text/html;charset=utf-8")] + content = "foo" + + return headers, content diff --git a/tests/wpt/web-platform-tests/XMLHttpRequest/send-content-type-string.htm b/tests/wpt/web-platform-tests/XMLHttpRequest/send-content-type-string.htm index 61cb4c0ff93..0391ed8b3d1 100644 --- a/tests/wpt/web-platform-tests/XMLHttpRequest/send-content-type-string.htm +++ b/tests/wpt/web-platform-tests/XMLHttpRequest/send-content-type-string.htm @@ -20,7 +20,7 @@ request("TEST", "text/plain;charset=UTF-8") function init(fr) { request(fr.contentDocument, fr.getAttribute("data-t")) } - - + + diff --git a/tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm b/tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm index 67a0ff6db49..5f1cb68dce8 100644 --- a/tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm +++ b/tests/wpt/web-platform-tests/XMLHttpRequest/send-entity-body-document.htm @@ -16,11 +16,13 @@ { contentType: 'text/html;charset=UTF-8', responseText : '\uFFFD<\/body>' }, /*invalid character code in document turns into FFFD*/ { contentType: 'text/html;charset=UTF-8', responseText : '\u30C6\u30b9\u30c8<\/body>' } /* correctly serialized Shift-JIS */, { contentType: 'text/html;charset=UTF-8', responseText: 'top' }, /* There's some markup included, but it's not really relevant for this test suite, so we do an indexOf() test */ - { contentType: 'text/html;charset=UTF-8' } + { contentType: 'text/html;charset=UTF-8' }, + { contentType: 'text/html;charset=UTF-8', responseText: 'foo' }, + { contentType: 'text/html;charset=UTF-8', responseText: '
' } ] - function request(input, isHTML, title) { + function request(input, number, title) { test(function() { var client = new XMLHttpRequest() client.open("POST", "resources/content.py?response_charset_label=UTF-8", false) @@ -30,12 +32,14 @@ // The indexOf() assertation will overlook some stuff, i.e. XML prologues that shouldn't be there (looking at you, Presto). // However, arguably these things have little to do with the XHR functionality we're testing. if(exp.responseText){ // This test does not want to assert anything about what markup a standalone IMG should be wrapped in. Hence the GIF test lacks a responseText expectation. - assert_true(client.responseText.indexOf(exp.responseText) != -1); + assert_true(client.responseText.indexOf(exp.responseText) != -1, + JSON.stringify(exp.responseText) + " not in " + + JSON.stringify(client.responseText)); } assert_equals(client.responseXML, null) }, title) } - function init(fr, number, title) { request(fr.contentDocument, number) } + function init(fr, number, title) { request(fr.contentDocument, number, title) } + --> diff --git a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py index 7c0f976a44b..f16ec8a35a9 100644 --- a/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py +++ b/tests/wpt/web-platform-tests/tools/manifest/sourcefile.py @@ -134,7 +134,7 @@ class SourceFile(object): ext = ext[1:] if ext in ["html", "htm"]: return "html" - if ext in ["xhtml", "xht"]: + if ext in ["xhtml", "xht", "xml"]: return "xhtml" if ext == "svg": return "svg" diff --git a/tests/wpt/web-platform-tests/webstorage/idlharness.html b/tests/wpt/web-platform-tests/webstorage/idlharness.html index 094e12616ee..454e441d6f9 100644 --- a/tests/wpt/web-platform-tests/webstorage/idlharness.html +++ b/tests/wpt/web-platform-tests/webstorage/idlharness.html @@ -31,7 +31,7 @@ interface Storage { readonly attribute unsigned long length; DOMString? key(unsigned long index); getter DOMString? getItem(DOMString key); - setter creator void setItem(DOMString key, DOMString value); + setter void setItem(DOMString key, DOMString value); deleter void removeItem(DOMString key); void clear(); };