mirror of
https://github.com/servo/servo.git
synced 2025-10-17 00:39:15 +01:00
Update web-platform-tests to revision 51b8e0940e87eda1f843a48d847d653b9a22c8c4
This commit is contained in:
parent
ea8aed1ba9
commit
a7b57c1cbf
53 changed files with 1764 additions and 337 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue