mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision 78f764c05c229883e87ad135c7153051a66e2851
This commit is contained in:
parent
55347aa39f
commit
bf84a079f9
1983 changed files with 58006 additions and 31437 deletions
|
@ -1,11 +1,15 @@
|
|||
// Checks that this is an ElementTiming entry with name |expectedName|. It also
|
||||
// does a very basic check on |startTime|: after |beforeRender| and before now().
|
||||
function checkElement(entry, expectedName, beforeRender) {
|
||||
function checkElement(entry, expectedName, expectedIdentifier, beforeRender) {
|
||||
assert_equals(entry.entryType, 'element');
|
||||
assert_equals(entry.name, expectedName);
|
||||
assert_equals(entry.identifier, expectedIdentifier);
|
||||
assert_equals(entry.duration, 0);
|
||||
assert_greater_than_equal(entry.startTime, beforeRender);
|
||||
assert_greater_than_equal(performance.now(), entry.startTime);
|
||||
const rt_entries = performance.getEntriesByName(expectedName, 'resource');
|
||||
assert_equals(rt_entries.length, 1);
|
||||
assert_equals(rt_entries[0].responseEnd, entry.responseEnd);
|
||||
}
|
||||
|
||||
// Checks that the rect matches the desired values [left right top bottom]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue