From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- .../resources/blank-page-green-with-onunload.html | 11 ++ .../resources/blank-page-green.html | 10 ++ .../resources/blank-page-meta-redirect.html | 11 ++ .../resources/blank-page-unload.html | 25 +++++ .../resources/blank-page-yellow-with-onunload.html | 11 ++ .../resources/blank-page-yellow.html | 10 ++ .../resources/blank_page_prefetch.html | 27 +++++ .../resources/blank_page_prefetch.html.headers | 1 + .../resources/iframe-prefetch-transfer-size.html | 31 ++++++ .../resources/navigation-type-post-back.html | 10 ++ .../resources/navigation_type_post_back.py | 12 +++ .../resources/performance-attribute-sender.html | 13 +++ .../navigation-timing/resources/respond-slowly.py | 29 ++++++ .../resources/secure-connection-interim.html | 8 ++ .../secure-connection-interim.html.headers | 3 + .../resources/secure-connection-test.html | 13 +++ .../resources/webperftestharness.js | 113 +++++++++++++++++++++ 17 files changed, 338 insertions(+) create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-green-with-onunload.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-green.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-meta-redirect.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-unload.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-yellow-with-onunload.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank-page-yellow.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html.headers create mode 100644 testing/web-platform/tests/navigation-timing/resources/iframe-prefetch-transfer-size.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/navigation-type-post-back.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/navigation_type_post_back.py create mode 100644 testing/web-platform/tests/navigation-timing/resources/performance-attribute-sender.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/respond-slowly.py create mode 100644 testing/web-platform/tests/navigation-timing/resources/secure-connection-interim.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/secure-connection-interim.html.headers create mode 100644 testing/web-platform/tests/navigation-timing/resources/secure-connection-test.html create mode 100644 testing/web-platform/tests/navigation-timing/resources/webperftestharness.js (limited to 'testing/web-platform/tests/navigation-timing/resources') diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-green-with-onunload.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-green-with-onunload.html new file mode 100644 index 0000000000..2f401747b0 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-green-with-onunload.html @@ -0,0 +1,11 @@ + + + + + Green Test Page + + + +

Placeholder

+ + diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-green.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-green.html new file mode 100644 index 0000000000..b8a1947b77 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-green.html @@ -0,0 +1,10 @@ + + + + + Green Test Page + + +

Placeholder

+ + diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-meta-redirect.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-meta-redirect.html new file mode 100644 index 0000000000..4b4bda096c --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-meta-redirect.html @@ -0,0 +1,11 @@ + + + + + + Redirect Placeholder + + +

Placeholder

+ + diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-unload.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-unload.html new file mode 100644 index 0000000000..bb2a27f168 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-unload.html @@ -0,0 +1,25 @@ + + + + + + Yellow Test Page + + + + +

Unload

+ + diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow-with-onunload.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow-with-onunload.html new file mode 100644 index 0000000000..771e0701d9 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow-with-onunload.html @@ -0,0 +1,11 @@ + + + + + Yellow Test Page + + + +

Placeholder

+ + \ No newline at end of file diff --git a/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow.html b/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow.html new file mode 100644 index 0000000000..4e5e1a000c --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank-page-yellow.html @@ -0,0 +1,10 @@ + + + + + Yellow Test Page + + +

Placeholder

+ + \ No newline at end of file diff --git a/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html b/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html new file mode 100644 index 0000000000..1112ca28ec --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html @@ -0,0 +1,27 @@ + + + + + + Page to be Prefetched + + + + + + + + + diff --git a/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html.headers b/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html.headers new file mode 100644 index 0000000000..771aba7f94 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/blank_page_prefetch.html.headers @@ -0,0 +1 @@ +Cache-Control: max-age=300 diff --git a/testing/web-platform/tests/navigation-timing/resources/iframe-prefetch-transfer-size.html b/testing/web-platform/tests/navigation-timing/resources/iframe-prefetch-transfer-size.html new file mode 100644 index 0000000000..fde01775b7 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/iframe-prefetch-transfer-size.html @@ -0,0 +1,31 @@ + + + + + + Iframe Transfer Size Prefetch + + + +

Placeholder

+ + + + diff --git a/testing/web-platform/tests/navigation-timing/resources/navigation-type-post-back.html b/testing/web-platform/tests/navigation-timing/resources/navigation-type-post-back.html new file mode 100644 index 0000000000..8c19a2f5a5 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/navigation-type-post-back.html @@ -0,0 +1,10 @@ + + + + +
+ Post to page +
+ + + diff --git a/testing/web-platform/tests/navigation-timing/resources/navigation_type_post_back.py b/testing/web-platform/tests/navigation-timing/resources/navigation_type_post_back.py new file mode 100644 index 0000000000..9da06f4f03 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/navigation_type_post_back.py @@ -0,0 +1,12 @@ +# Accoridng to routes.py in the wpt server implementation, POST method is +# handled by a Python script handler which requires this file to return an html. +def main(request, response): + content = """ + + + + navigate away. + + + """ + return content diff --git a/testing/web-platform/tests/navigation-timing/resources/performance-attribute-sender.html b/testing/web-platform/tests/navigation-timing/resources/performance-attribute-sender.html new file mode 100644 index 0000000000..99f544690d --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/performance-attribute-sender.html @@ -0,0 +1,13 @@ + + + + + + diff --git a/testing/web-platform/tests/navigation-timing/resources/respond-slowly.py b/testing/web-platform/tests/navigation-timing/resources/respond-slowly.py new file mode 100644 index 0000000000..e58e16f1f0 --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/respond-slowly.py @@ -0,0 +1,29 @@ +import time + + +def main(request, response): + head = b"""""" + response.headers.set(b"Content-Length", str(len(head) + 1000)) + response.headers.set(b"Content-Type", b"text/html") + response.write_status_headers() + response.writer.write_content(head) + for i in range(100): + response.writer.write_content(b"1234567890") + time.sleep(0.01) diff --git a/testing/web-platform/tests/navigation-timing/resources/secure-connection-interim.html b/testing/web-platform/tests/navigation-timing/resources/secure-connection-interim.html new file mode 100644 index 0000000000..e40b00bedb --- /dev/null +++ b/testing/web-platform/tests/navigation-timing/resources/secure-connection-interim.html @@ -0,0 +1,8 @@ + + +