mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -1,13 +1,3 @@
|
|||
function assert_array_approx_equals(actual, expected, epsilon, description)
|
||||
{
|
||||
assert_true(actual.length === expected.length,
|
||||
(description + ": lengths differ, expected " + expected.length + " got " + actual.length))
|
||||
|
||||
for (var i=0; i < actual.length; i++) {
|
||||
assert_approx_equals(actual[i], expected[i], epsilon, (description + ": element " + i))
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Returns an array (typed or not), of the passed array with removed trailing and ending
|
||||
zero-valued elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue