mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +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
|
@ -12,5 +12,11 @@ function getAbsoluteURL(url)
|
|||
|
||||
function verifyNumberOfDownloads(url, number)
|
||||
{
|
||||
assert_equals(performance.getEntriesByName(getAbsoluteURL(url)).length, number, url);
|
||||
var numDownloads = 0;
|
||||
performance.getEntriesByName(getAbsoluteURL(url)).forEach(entry => {
|
||||
if (entry.transferSize > 0) {
|
||||
numDownloads++;
|
||||
}
|
||||
});
|
||||
assert_equals(numDownloads, number, url);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue