Update web-platform-tests to revision 51b8e0940e87eda1f843a48d847d653b9a22c8c4

This commit is contained in:
WPT Sync Bot 2020-03-05 08:19:09 +00:00
parent ea8aed1ba9
commit a7b57c1cbf
53 changed files with 1764 additions and 337 deletions

View file

@ -35,16 +35,20 @@ function test_math_used(testString, expectedString, {base="123px", msg, prop="le
All of these expect the testString to evaluate to a <number>.
*/
function test_plus_infinity(testString) {
test_math_used(`calc(1px * ${testString})`, "calc(infinity * 1px)");
test_math_used(`calc(1px * ${testString})`, "calc(infinity * 1px)",
{msg:`${testString} should equal +Infinity.`});
}
function test_minus_infinity(testString) {
test_math_used(`calc(1px * ${testString})`, "calc(-infinity * 1px)");
test_math_used(`calc(1px * ${testString})`, "calc(-infinity * 1px)",
{msg:`${testString} should equal -Infinity.`});
}
function test_plus_zero(testString) {
test_math_used(`calc(1px / ${testString})`, "calc(infinity * 1px)");
test_math_used(`calc(1px / ${testString})`, "calc(infinity * 1px)",
{msg:`${testString} should equal 0⁺.`});
}
function test_minus_zero(testString) {
test_math_used(`calc(1px / ${testString})`, "calc(-infinity * 1px)");
test_math_used(`calc(1px / ${testString})`, "calc(-infinity * 1px)",
{msg:`${testString} should equal 0⁻.`});
}
function test_nan(testString) {
// Make sure that it's NaN, not an infinity,