mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -29,7 +29,11 @@ if (!window.assert_times_equal) {
|
|||
// a time value based on its precision requirements with a fixed value.
|
||||
if (!window.assert_time_equals_literal) {
|
||||
window.assert_time_equals_literal = (actual, expected, description) => {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
if (Math.abs(expected) === Infinity) {
|
||||
assert_equals(actual, expected, description);
|
||||
} else {
|
||||
assert_approx_equals(actual, expected, TIME_PRECISION, description);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -283,4 +287,4 @@ function assert_rotate3d_equals(actual, expected, description) {
|
|||
assert_approx_equals(actualRotationVector[i], expectedRotationVector[i], 0.0001,
|
||||
`expected ${expected} but got ${actual}: ${description}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue