mirror of
https://github.com/servo/servo.git
synced 2025-08-22 05:45:33 +01:00
Update web-platform-tests to revision 0159b3ec9ba5355a3340621226e02ae026effd7f
This commit is contained in:
parent
d588ce8d85
commit
43a50e298a
37 changed files with 1341 additions and 62 deletions
|
@ -358,6 +358,8 @@ Object.keys(encodingMap).forEach(function(name) {
|
|||
" has label " + format_value(label) + " (characterSet)");
|
||||
var t2 = async_test("Name " + format_value(name) +
|
||||
" has label " + format_value(label) + " (inputEncoding)");
|
||||
var t3 = async_test("Name " + format_value(name) +
|
||||
" has label " + format_value(label) + " (charset)");
|
||||
/*
|
||||
iframe.src = "data:text/html,<!doctype html>" +
|
||||
'<meta charset="' + label + '">';
|
||||
|
@ -370,9 +372,13 @@ Object.keys(encodingMap).forEach(function(name) {
|
|||
t2.step(function() {
|
||||
assert_equals(iframe.contentDocument.inputEncoding, expected_case(name));
|
||||
});
|
||||
t3.step(function() {
|
||||
assert_equals(iframe.contentDocument.charset, expected_case(name));
|
||||
});
|
||||
document.body.removeChild(iframe);
|
||||
t.done();
|
||||
t2.done();
|
||||
t3.done();
|
||||
};
|
||||
document.body.appendChild(iframe);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue