From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/element-timing/META.yml | 3 + .../element-timing/background-image-data-uri.html | 39 +++++++ .../background-image-multiple-elements.html | 88 +++++++++++++++ .../element-timing/background-image-stretched.html | 39 +++++++ .../tests/element-timing/buffer-before-onload.html | 44 ++++++++ .../tests/element-timing/buffered-flag.html | 40 +++++++ .../element-timing/cross-origin-element.sub.html | 45 ++++++++ .../cross-origin-iframe-element.sub.html | 36 ++++++ .../tests/element-timing/css-generated-text.html | 36 ++++++ .../tests/element-timing/disconnect-image.html | 41 +++++++ .../element-only-when-fully-active.html | 20 ++++ .../element-timing/first-letter-background.html | 57 ++++++++++ .../tests/element-timing/fixed-id-identifier.html | 28 +++++ .../tests/element-timing/idlharness.window.js | 17 +++ .../tests/element-timing/image-TAO.sub.html | 54 +++++++++ .../tests/element-timing/image-carousel.html | 75 +++++++++++++ .../tests/element-timing/image-clipped-svg.html | 34 ++++++ .../tests/element-timing/image-data-uri.html | 37 +++++++ .../tests/element-timing/image-not-added.html | 31 ++++++ .../element-timing/image-not-fully-visible.html | 47 ++++++++ .../tests/element-timing/image-rect-iframe.html | 33 ++++++ .../tests/element-timing/image-src-change.html | 86 +++++++++++++++ .../tests/element-timing/image-with-css-scale.html | 42 +++++++ .../tests/element-timing/image-with-rotation.html | 50 +++++++++ .../element-timing/images-repeated-resource.html | 73 ++++++++++++ .../tests/element-timing/invisible-images.html | 79 +++++++++++++ .../element-timing/multiple-background-images.html | 58 ++++++++++ .../element-timing/multiple-redirects-TAO.html | 62 +++++++++++ .../element-timing/observe-background-image.html | 37 +++++++ .../element-timing/observe-child-element.html | 41 +++++++ .../element-timing/observe-elementtiming.html | 44 ++++++++ .../element-timing/observe-empty-attribute.html | 38 +++++++ .../element-timing/observe-multiple-images.html | 122 +++++++++++++++++++++ .../tests/element-timing/observe-shadow-image.html | 38 +++++++ .../tests/element-timing/observe-shadow-text.html | 37 +++++++ .../tests/element-timing/observe-svg-image.html | 34 ++++++ .../tests/element-timing/observe-text.html | 48 ++++++++ .../tests/element-timing/observe-video-poster.html | 32 ++++++ .../element-timing/progressively-loaded-image.html | 40 +++++++ .../tests/element-timing/rectangular-image.html | 43 ++++++++ .../tests/element-timing/redirects-tao-star.html | 53 +++++++++ .../tests/element-timing/resources/TAOImage.py | 47 ++++++++ .../tests/element-timing/resources/circle-tao.svg | 6 + .../resources/circle-tao.svg.headers | 1 + .../tests/element-timing/resources/circle.svg | 6 + .../resources/element-timing-helpers.js | 74 +++++++++++++ .../resources/iframe-stores-entry.html | 12 ++ .../resources/iframe-with-content.html | 5 + .../resources/iframe-with-square-sends-entry.html | 26 +++++ .../resources/iframe-with-square.html | 10 ++ .../element-timing/resources/multiple-redirects.py | 59 ++++++++++ .../element-timing/resources/progressive-image.py | 27 +++++ .../tests/element-timing/resources/slow-image.py | 19 ++++ .../tests/element-timing/resources/square100.png | Bin 0 -> 12940 bytes .../tests/element-timing/resources/square20.jpg | Bin 0 -> 529 bytes .../tests/element-timing/resources/square20.png | Bin 0 -> 150 bytes .../tests/element-timing/retrievability.html | 29 +++++ .../element-timing/same-origin-redirects.html | 37 +++++++ .../tests/element-timing/scroll-to-text.html | 30 +++++ .../element-timing/supported-element-type.html | 17 +++ .../element-timing/text-with-display-style.html | 54 +++++++++ .../web-platform/tests/element-timing/toJSON.html | 45 ++++++++ 62 files changed, 2405 insertions(+) create mode 100644 testing/web-platform/tests/element-timing/META.yml create mode 100644 testing/web-platform/tests/element-timing/background-image-data-uri.html create mode 100644 testing/web-platform/tests/element-timing/background-image-multiple-elements.html create mode 100644 testing/web-platform/tests/element-timing/background-image-stretched.html create mode 100644 testing/web-platform/tests/element-timing/buffer-before-onload.html create mode 100644 testing/web-platform/tests/element-timing/buffered-flag.html create mode 100644 testing/web-platform/tests/element-timing/cross-origin-element.sub.html create mode 100644 testing/web-platform/tests/element-timing/cross-origin-iframe-element.sub.html create mode 100644 testing/web-platform/tests/element-timing/css-generated-text.html create mode 100644 testing/web-platform/tests/element-timing/disconnect-image.html create mode 100644 testing/web-platform/tests/element-timing/element-only-when-fully-active.html create mode 100644 testing/web-platform/tests/element-timing/first-letter-background.html create mode 100644 testing/web-platform/tests/element-timing/fixed-id-identifier.html create mode 100644 testing/web-platform/tests/element-timing/idlharness.window.js create mode 100644 testing/web-platform/tests/element-timing/image-TAO.sub.html create mode 100644 testing/web-platform/tests/element-timing/image-carousel.html create mode 100644 testing/web-platform/tests/element-timing/image-clipped-svg.html create mode 100644 testing/web-platform/tests/element-timing/image-data-uri.html create mode 100644 testing/web-platform/tests/element-timing/image-not-added.html create mode 100644 testing/web-platform/tests/element-timing/image-not-fully-visible.html create mode 100644 testing/web-platform/tests/element-timing/image-rect-iframe.html create mode 100644 testing/web-platform/tests/element-timing/image-src-change.html create mode 100644 testing/web-platform/tests/element-timing/image-with-css-scale.html create mode 100644 testing/web-platform/tests/element-timing/image-with-rotation.html create mode 100644 testing/web-platform/tests/element-timing/images-repeated-resource.html create mode 100644 testing/web-platform/tests/element-timing/invisible-images.html create mode 100644 testing/web-platform/tests/element-timing/multiple-background-images.html create mode 100644 testing/web-platform/tests/element-timing/multiple-redirects-TAO.html create mode 100644 testing/web-platform/tests/element-timing/observe-background-image.html create mode 100644 testing/web-platform/tests/element-timing/observe-child-element.html create mode 100644 testing/web-platform/tests/element-timing/observe-elementtiming.html create mode 100644 testing/web-platform/tests/element-timing/observe-empty-attribute.html create mode 100644 testing/web-platform/tests/element-timing/observe-multiple-images.html create mode 100644 testing/web-platform/tests/element-timing/observe-shadow-image.html create mode 100644 testing/web-platform/tests/element-timing/observe-shadow-text.html create mode 100644 testing/web-platform/tests/element-timing/observe-svg-image.html create mode 100644 testing/web-platform/tests/element-timing/observe-text.html create mode 100644 testing/web-platform/tests/element-timing/observe-video-poster.html create mode 100644 testing/web-platform/tests/element-timing/progressively-loaded-image.html create mode 100644 testing/web-platform/tests/element-timing/rectangular-image.html create mode 100644 testing/web-platform/tests/element-timing/redirects-tao-star.html create mode 100644 testing/web-platform/tests/element-timing/resources/TAOImage.py create mode 100644 testing/web-platform/tests/element-timing/resources/circle-tao.svg create mode 100644 testing/web-platform/tests/element-timing/resources/circle-tao.svg.headers create mode 100644 testing/web-platform/tests/element-timing/resources/circle.svg create mode 100644 testing/web-platform/tests/element-timing/resources/element-timing-helpers.js create mode 100644 testing/web-platform/tests/element-timing/resources/iframe-stores-entry.html create mode 100644 testing/web-platform/tests/element-timing/resources/iframe-with-content.html create mode 100644 testing/web-platform/tests/element-timing/resources/iframe-with-square-sends-entry.html create mode 100644 testing/web-platform/tests/element-timing/resources/iframe-with-square.html create mode 100644 testing/web-platform/tests/element-timing/resources/multiple-redirects.py create mode 100644 testing/web-platform/tests/element-timing/resources/progressive-image.py create mode 100644 testing/web-platform/tests/element-timing/resources/slow-image.py create mode 100644 testing/web-platform/tests/element-timing/resources/square100.png create mode 100644 testing/web-platform/tests/element-timing/resources/square20.jpg create mode 100644 testing/web-platform/tests/element-timing/resources/square20.png create mode 100644 testing/web-platform/tests/element-timing/retrievability.html create mode 100644 testing/web-platform/tests/element-timing/same-origin-redirects.html create mode 100644 testing/web-platform/tests/element-timing/scroll-to-text.html create mode 100644 testing/web-platform/tests/element-timing/supported-element-type.html create mode 100644 testing/web-platform/tests/element-timing/text-with-display-style.html create mode 100644 testing/web-platform/tests/element-timing/toJSON.html (limited to 'testing/web-platform/tests/element-timing') diff --git a/testing/web-platform/tests/element-timing/META.yml b/testing/web-platform/tests/element-timing/META.yml new file mode 100644 index 0000000000..15510df7e5 --- /dev/null +++ b/testing/web-platform/tests/element-timing/META.yml @@ -0,0 +1,3 @@ +spec: https://wicg.github.io/element-timing/ +suggested_reviewers: + - npm1 diff --git a/testing/web-platform/tests/element-timing/background-image-data-uri.html b/testing/web-platform/tests/element-timing/background-image-data-uri.html new file mode 100644 index 0000000000..9722463742 --- /dev/null +++ b/testing/web-platform/tests/element-timing/background-image-data-uri.html @@ -0,0 +1,39 @@ + + +Element Timing: observe element with inline background image + + + + + + +
+ diff --git a/testing/web-platform/tests/element-timing/background-image-multiple-elements.html b/testing/web-platform/tests/element-timing/background-image-multiple-elements.html new file mode 100644 index 0000000000..11f8c05f96 --- /dev/null +++ b/testing/web-platform/tests/element-timing/background-image-multiple-elements.html @@ -0,0 +1,88 @@ + + +Element Timing: background image affecting multiple elements + + + + + + +
+ +
+
+ Sample text inside div. +
+
+ I am a div that should not be observed! +
+ diff --git a/testing/web-platform/tests/element-timing/background-image-stretched.html b/testing/web-platform/tests/element-timing/background-image-stretched.html new file mode 100644 index 0000000000..3ad8976ccf --- /dev/null +++ b/testing/web-platform/tests/element-timing/background-image-stretched.html @@ -0,0 +1,39 @@ + + +Element Timing: observe larger element with stretched background image + + + + + + +
+ diff --git a/testing/web-platform/tests/element-timing/buffer-before-onload.html b/testing/web-platform/tests/element-timing/buffer-before-onload.html new file mode 100644 index 0000000000..17c8238f6e --- /dev/null +++ b/testing/web-platform/tests/element-timing/buffer-before-onload.html @@ -0,0 +1,44 @@ + + + +Element Timing: buffer elements before onload + + + + + + + + diff --git a/testing/web-platform/tests/element-timing/buffered-flag.html b/testing/web-platform/tests/element-timing/buffered-flag.html new file mode 100644 index 0000000000..e7fcf059fb --- /dev/null +++ b/testing/web-platform/tests/element-timing/buffered-flag.html @@ -0,0 +1,40 @@ + + +Element Timing: observe element with buffered flag + + + + + + + diff --git a/testing/web-platform/tests/element-timing/cross-origin-element.sub.html b/testing/web-platform/tests/element-timing/cross-origin-element.sub.html new file mode 100644 index 0000000000..1052bf246d --- /dev/null +++ b/testing/web-platform/tests/element-timing/cross-origin-element.sub.html @@ -0,0 +1,45 @@ + + +Element Timing: observe cross-origin images but without renderTime + + + + + + + + diff --git a/testing/web-platform/tests/element-timing/cross-origin-iframe-element.sub.html b/testing/web-platform/tests/element-timing/cross-origin-iframe-element.sub.html new file mode 100644 index 0000000000..2f49933ab9 --- /dev/null +++ b/testing/web-platform/tests/element-timing/cross-origin-iframe-element.sub.html @@ -0,0 +1,36 @@ + + +Element Timing: do NOT observe elements from cross-origin iframes + + + + + + + diff --git a/testing/web-platform/tests/element-timing/css-generated-text.html b/testing/web-platform/tests/element-timing/css-generated-text.html new file mode 100644 index 0000000000..d1bbf5a7ee --- /dev/null +++ b/testing/web-platform/tests/element-timing/css-generated-text.html @@ -0,0 +1,36 @@ + + +Element Timing: observe generated CSS text + + + + + +

+ + diff --git a/testing/web-platform/tests/element-timing/disconnect-image.html b/testing/web-platform/tests/element-timing/disconnect-image.html new file mode 100644 index 0000000000..6f9f2ce7b9 --- /dev/null +++ b/testing/web-platform/tests/element-timing/disconnect-image.html @@ -0,0 +1,41 @@ + + +Element Timing: element attribute returns null when element is disconnected + + + + + + + diff --git a/testing/web-platform/tests/element-timing/element-only-when-fully-active.html b/testing/web-platform/tests/element-timing/element-only-when-fully-active.html new file mode 100644 index 0000000000..ff08074d57 --- /dev/null +++ b/testing/web-platform/tests/element-timing/element-only-when-fully-active.html @@ -0,0 +1,20 @@ + + +ElementTiming: element is only exposed for fully active documents. + + + + + + diff --git a/testing/web-platform/tests/element-timing/first-letter-background.html b/testing/web-platform/tests/element-timing/first-letter-background.html new file mode 100644 index 0000000000..f05f2f9223 --- /dev/null +++ b/testing/web-platform/tests/element-timing/first-letter-background.html @@ -0,0 +1,57 @@ + + +Element Timing: observe element with background image in its first letter + + + + + + +
This is some text that I care about
+ diff --git a/testing/web-platform/tests/element-timing/fixed-id-identifier.html b/testing/web-platform/tests/element-timing/fixed-id-identifier.html new file mode 100644 index 0000000000..749b9ada2f --- /dev/null +++ b/testing/web-platform/tests/element-timing/fixed-id-identifier.html @@ -0,0 +1,28 @@ + + +Element Timing: entry does not change its id or identifier value + + + + +

Text

+ + diff --git a/testing/web-platform/tests/element-timing/idlharness.window.js b/testing/web-platform/tests/element-timing/idlharness.window.js new file mode 100644 index 0000000000..a3189c3679 --- /dev/null +++ b/testing/web-platform/tests/element-timing/idlharness.window.js @@ -0,0 +1,17 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +// https://wicg.github.io/element-timing/ + +'use strict'; + +idl_test( + ['element-timing'], + ['performance-timeline', 'dom'], + idl_array => { + idl_array.add_objects({ + // PerformanceElementTiming: [ TODO ] + }); + } +); diff --git a/testing/web-platform/tests/element-timing/image-TAO.sub.html b/testing/web-platform/tests/element-timing/image-TAO.sub.html new file mode 100644 index 0000000000..7b455dfa4c --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-TAO.sub.html @@ -0,0 +1,54 @@ + + +Element Timing: observe cross origin images with various Timing-Allow-Origin headers + + + + + + diff --git a/testing/web-platform/tests/element-timing/image-carousel.html b/testing/web-platform/tests/element-timing/image-carousel.html new file mode 100644 index 0000000000..2b3b618f8c --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-carousel.html @@ -0,0 +1,75 @@ + + +Element Timing: observe images in carousel + + + + + + +
+ + +
+ + + + diff --git a/testing/web-platform/tests/element-timing/image-clipped-svg.html b/testing/web-platform/tests/element-timing/image-clipped-svg.html new file mode 100644 index 0000000000..4c2bb36079 --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-clipped-svg.html @@ -0,0 +1,34 @@ + + +Element Timing: observe image inside SVG with small dimensions + + + + + + + + diff --git a/testing/web-platform/tests/element-timing/image-data-uri.html b/testing/web-platform/tests/element-timing/image-data-uri.html new file mode 100644 index 0000000000..02d88fb244 --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-data-uri.html @@ -0,0 +1,37 @@ + + +Element Timing: observe inline image + + + + + + + + diff --git a/testing/web-platform/tests/element-timing/image-not-added.html b/testing/web-platform/tests/element-timing/image-not-added.html new file mode 100644 index 0000000000..d77049ecd4 --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-not-added.html @@ -0,0 +1,31 @@ + + +Element Timing: do not observe a disconnected image + + + diff --git a/testing/web-platform/tests/element-timing/image-not-fully-visible.html b/testing/web-platform/tests/element-timing/image-not-fully-visible.html new file mode 100644 index 0000000000..504d17592f --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-not-fully-visible.html @@ -0,0 +1,47 @@ + + +Element Timing: intersectionRect when image overflows + + + + + + + + diff --git a/testing/web-platform/tests/element-timing/image-rect-iframe.html b/testing/web-platform/tests/element-timing/image-rect-iframe.html new file mode 100644 index 0000000000..00986366e6 --- /dev/null +++ b/testing/web-platform/tests/element-timing/image-rect-iframe.html @@ -0,0 +1,33 @@ + + +Element Timing: check intersectionRect for element in iframe + + + + + +