Skip to content

Commit

Permalink
Replace assert_precondition with assert_equals in domparsing/ (web-pl…
Browse files Browse the repository at this point in the history
…atform-tests#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.
  • Loading branch information
stephenmcgruer authored Apr 22, 2020
1 parent bce4a4d commit e650870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domparsing/DOMParser-parseFromString-encoding.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

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

0 comments on commit e650870

Please sign in to comment.