mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6'
This commit is contained in:
parent
cfef75c99b
commit
bb34f95b33
1683 changed files with 37170 additions and 4252 deletions
|
@ -167,11 +167,13 @@
|
|||
t.add_cleanup(() => {
|
||||
frame.remove();
|
||||
});
|
||||
frame.src = "resources/text-plain-charset.py?label=" + label;
|
||||
// Intentionally use <meta> as Content-Type results in browser differences
|
||||
// See /html/syntax/charset/inheritance-bogus-meta.html
|
||||
frame.src = "resources/text-html-meta-charset.py?label=" + label;
|
||||
frame.onload = t.step_func_done(() => {
|
||||
// If we ever change this default this needs adjusting accordingly.
|
||||
assert_equals(frame.contentDocument.characterSet, "windows-1252");
|
||||
assert_equals(frame.contentDocument.inputEncoding, "windows-1252");
|
||||
// UTF-8 as it inherits from the parent document when unrecognized
|
||||
assert_equals(frame.contentDocument.characterSet, "UTF-8");
|
||||
assert_equals(frame.contentDocument.inputEncoding, "UTF-8");
|
||||
});
|
||||
document.body.append(frame);
|
||||
}, `${label} is not supported by the Encoding Standard`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue