mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 074719e3660000659cd074b8a59de69bd9b90cd7
This commit is contained in:
parent
7e4d0534c3
commit
d2429e5077
4053 changed files with 160516 additions and 486 deletions
|
@ -35,4 +35,16 @@ const xhtml_prologue = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|||
assert_equals(parsererrors.length, 1, 'expecting one parsererror');
|
||||
}, document.title + ', ' + fragment);
|
||||
});
|
||||
|
||||
[
|
||||
'text/xml',
|
||||
'application/xml',
|
||||
'application/xhtml+xml',
|
||||
'image/svg+xml'
|
||||
].forEach(mimeType => {
|
||||
test(() => {
|
||||
const doc = (new DOMParser()).parseFromString('<span x:test="testing">1</span>', mimeType);
|
||||
assert_equals(doc.contentType, mimeType);
|
||||
}, `${mimeType} is preserved in the error document`);
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue