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:
Stephen McGruer 2020-04-28 11:37:22 +00:00 коммит произвёл moz-wptsync-bot
Родитель e3873662f9
Коммит 43661e1c47
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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(() => {