mirror of
https://github.com/servo/servo
synced 2026-04-30 19:37:43 +02:00
Update web-platform-tests to revision fab2c513bffb2bd19600d23b495264d123df092f
This commit is contained in:
@@ -20,7 +20,7 @@ function testDoc(doc, contentType) {
|
||||
if (doc.contentType !== undefined) {
|
||||
// Sanity check
|
||||
assert_equals(doc.contentType, contentType,
|
||||
"Wrong MIME type -- incorrect server config?");
|
||||
"Wrong MIME type returned from doc.contentType");
|
||||
}
|
||||
|
||||
var expectedNamespace = contentType == "text/html" ||
|
||||
@@ -54,6 +54,23 @@ test(function() {
|
||||
"application/xml");
|
||||
}, "Created element's namespace in created MathML document");
|
||||
|
||||
// Second also test document created by DOMParser
|
||||
test(function() {
|
||||
testDoc(new DOMParser().parseFromString("", "text/html"), "text/html");
|
||||
}, "Created element's namespace in created HTML document by DOMParser ('text/html')");
|
||||
test(function() {
|
||||
testDoc(new DOMParser().parseFromString("<root/>", "text/xml"), "text/xml");
|
||||
}, "Created element's namespace in created XML document by DOMParser ('text/xml')");
|
||||
test(function() {
|
||||
testDoc(new DOMParser().parseFromString("<root/>", "application/xml"), "application/xml");
|
||||
}, "Created element's namespace in created XML document by DOMParser ('application/xml')");
|
||||
test(function() {
|
||||
testDoc(new DOMParser().parseFromString("<html/>", "application/xhtml+xml"), "application/xhtml+xml");
|
||||
}, "Created element's namespace in created XHTML document by DOMParser ('application/xhtml+xml')");
|
||||
test(function() {
|
||||
testDoc(new DOMParser().parseFromString("<math/>", "image/svg+xml"), "image/svg+xml");
|
||||
}, "Created element's namespace in created SVG document by DOMParser ('image/svg+xml')");
|
||||
|
||||
// Now for various externally-loaded files. Note: these lists must be kept
|
||||
// synced with the lists in generate.py in the subdirectory, and that script
|
||||
// must be run whenever the lists are updated. (We could keep the lists in a
|
||||
|
||||
Reference in New Issue
Block a user