зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1630628 [wpt PR 23007] - Replace assert_precondition with assert_equals in domparsing/, a=testonly
Automatic update from web-platform-tests Replace assert_precondition with assert_equals in domparsing/ (#23007) assert_precondition is deprecated (see https://github.com/web-platform-tests/rfcs/blob/master/rfcs/assert_precondition_rename.md). In this particular case, the assertion is actually checking for an equality rather than an 'implements' phrase, so switch to assert_equals. -- wpt-commits: e65087045387dd4ecb9d5c675062a6643e00c7ad wpt-pr: 23007
This commit is contained in:
Родитель
e3873662f9
Коммит
43661e1c47
|
@ -14,7 +14,7 @@ function assertEncoding(doc) {
|
|||
}
|
||||
|
||||
setup(() => {
|
||||
assert_precondition(document.characterSet === "windows-1252", "the meta charset must be in effect, making the main document windows-1252");
|
||||
assert_equals(document.characterSet, "windows-1252", "the meta charset must be in effect, making the main document windows-1252");
|
||||
});
|
||||
|
||||
test(() => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче