mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update web-platform-tests to revision 3bbb55915a04548e70c63b7c143a83e0e9d3c5e7
This commit is contained in:
parent
3340214a29
commit
b55cc798b6
100 changed files with 2036 additions and 3665 deletions
|
@ -22,7 +22,8 @@ body {
|
|||
const observer = new PerformanceObserver(
|
||||
t.step_func(function(entryList) {
|
||||
entryList.getEntries().forEach(entry => {
|
||||
checkElement(entry, pathname, entry.identifier, beforeRender);
|
||||
checkElement(entry, pathname, entry.identifier, 'image_id', beforeRender);
|
||||
checkNaturalSize(entry, 100, 100);
|
||||
if (entry.identifier === 'my_image') {
|
||||
++numEntries;
|
||||
responseEnd1 = entry.responseEnd;
|
||||
|
@ -46,11 +47,13 @@ body {
|
|||
const img = document.createElement('img');
|
||||
img.src = 'resources/square100.png';
|
||||
img.setAttribute('elementtiming', 'my_image');
|
||||
img.setAttribute('id', 'image_id');
|
||||
document.body.appendChild(img);
|
||||
|
||||
const img2 = document.createElement('img');
|
||||
img2.src = 'resources/square100.png';
|
||||
img2.setAttribute('elementtiming', 'my_image2');
|
||||
img2.setAttribute('id', 'image_id');
|
||||
document.body.appendChild(img2);
|
||||
|
||||
beforeRender = performance.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue