diff --git a/images/anim-tao.png b/images/anim-tao.png deleted file mode 100644 index 925e2efc9a97ade..000000000000000 Binary files a/images/anim-tao.png and /dev/null differ diff --git a/images/anim-tao.png.headers b/images/anim-tao.png.headers deleted file mode 100644 index 0230e176e44567f..000000000000000 --- a/images/anim-tao.png.headers +++ /dev/null @@ -1,2 +0,0 @@ -Timing-Allow-Origin: * - diff --git a/images/webp-animated.webp b/images/webp-animated.webp deleted file mode 100644 index 35a8dfcf34d5806..000000000000000 Binary files a/images/webp-animated.webp and /dev/null differ diff --git a/largest-contentful-paint/animated/observe-animated-image-gif.tentative.html b/largest-contentful-paint/animated/observe-animated-image-gif.tentative.html deleted file mode 100644 index a2c0d7975abe348..000000000000000 --- a/largest-contentful-paint/animated/observe-animated-image-gif.tentative.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - diff --git a/largest-contentful-paint/animated/observe-animated-image-webp.tentative.html b/largest-contentful-paint/animated/observe-animated-image-webp.tentative.html deleted file mode 100644 index de59d5c5f78c685..000000000000000 --- a/largest-contentful-paint/animated/observe-animated-image-webp.tentative.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - diff --git a/largest-contentful-paint/animated/observe-animated-image.tentative.html b/largest-contentful-paint/animated/observe-animated-image.tentative.html deleted file mode 100644 index cf7d262b0f842a0..000000000000000 --- a/largest-contentful-paint/animated/observe-animated-image.tentative.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - diff --git a/largest-contentful-paint/animated/observe-cross-origin-animated-image.tentative.html b/largest-contentful-paint/animated/observe-cross-origin-animated-image.tentative.html deleted file mode 100644 index 993883c607b8f73..000000000000000 --- a/largest-contentful-paint/animated/observe-cross-origin-animated-image.tentative.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - - diff --git a/largest-contentful-paint/animated/observe-cross-origin-tao-animated-image.tentative.html b/largest-contentful-paint/animated/observe-cross-origin-tao-animated-image.tentative.html deleted file mode 100644 index 137dde66383f772..000000000000000 --- a/largest-contentful-paint/animated/observe-cross-origin-tao-animated-image.tentative.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - - diff --git a/largest-contentful-paint/animated/observe-non-animated-image.tentative.html b/largest-contentful-paint/animated/observe-non-animated-image.tentative.html deleted file mode 100644 index 6bbc0958b1deb25..000000000000000 --- a/largest-contentful-paint/animated/observe-non-animated-image.tentative.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Largest Contentful Paint: observe image. - - - - - - - - diff --git a/largest-contentful-paint/resources/largest-contentful-paint-helpers.js b/largest-contentful-paint/resources/largest-contentful-paint-helpers.js index 5012faf3b1be338..e12ece0a7561cba 100644 --- a/largest-contentful-paint/resources/largest-contentful-paint-helpers.js +++ b/largest-contentful-paint/resources/largest-contentful-paint-helpers.js @@ -1,6 +1,3 @@ -const image_delay = 1000; -const delay_pipe_value = image_delay / 1000; - // Receives an image LargestContentfulPaint |entry| and checks |entry|'s attribute values. // The |timeLowerBound| parameter is a lower bound on the loadTime value of the entry. // The |options| parameter may contain some string values specifying the following: @@ -36,33 +33,4 @@ function checkImage(entry, expectedUrl, expectedID, expectedSize, timeLowerBound } else { assert_equals(entry.size, expectedSize); } - if (options.includes('animated')) { - assert_greater_than(entry.loadTime, entry.firstAnimatedFrameTime, - 'firstAnimatedFrameTime should be smaller than loadTime'); - assert_greater_than(entry.renderTime, entry.firstAnimatedFrameTime, - 'firstAnimatedFrameTime should be smaller than renderTime'); - assert_less_than(entry.firstAnimatedFrameTime, image_delay, - 'firstAnimatedFrameTime should be smaller than the delay applied to the second frame'); - assert_greater_than(entry.firstAnimatedFrameTime, 0, - 'firstAnimatedFrameTime should be larger than 0'); - } - if (options.includes('animated-zero')) { - assert_equals(entry.firstAnimatedFrameTime, 0, 'firstAnimatedFrameTime should be 0'); - } } - -const load_and_observe = url => { - return new Promise(resolve => { - (new PerformanceObserver(entryList => { - for (let entry of entryList.getEntries()) { - if (entry.url == url) { - resolve(entryList.getEntries()[0]); - } - } - })).observe({type: 'largest-contentful-paint', buffered: true}); - const img = new Image(); - img.id = 'image_id'; - img.src = url; - document.body.appendChild(img); - }); -};