mirror of
https://github.com/servo/servo.git
synced 2025-08-24 22:58:21 +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
|
@ -162,7 +162,11 @@ function resource_load(expected)
|
|||
assert_equals(entries_by_name_type.length, 1, "should have a single entry for each resource (with type)");
|
||||
assert_not_equals(entries_by_name, entries_by_name_type, "values should be copies");
|
||||
for (p in entries_by_name[0]) {
|
||||
assert_equals(entries_by_name[0][p], entries_by_name_type[0][p], "Property " + p + " should match");
|
||||
var assertMethod = assert_equals
|
||||
if (Array.isArray(entries_by_name[0][p]) && Array.isArray(entries_by_name_type[0][p])) {
|
||||
assertMethod = assert_array_equals
|
||||
}
|
||||
assertMethod(entries_by_name[0][p], entries_by_name_type[0][p], "Property " + p + " should match");
|
||||
}
|
||||
this.done();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue