From 9f9188a5dc5fa92c462d3d67a612337e7c839599 Mon Sep 17 00:00:00 2001 From: James C Scott III Date: Wed, 29 Nov 2023 18:59:21 -0500 Subject: [PATCH] Revert "Revert "WPT: Allow `window.onload` to contain multiple `test()`s"" (#38806) This reverts commit 5c571b86bc98819157b584132bca1b80ca4503cb. DO NOT MERGE: run `./wpt test-jobs --all` to see if it passes Adjust test to test for two assertions https://github.com/web-platform-tests/wpt/pull/38806#issuecomment-1453747441 Revert "DO NOT MERGE: run `./wpt test-jobs --all` to see if it passes" This reverts commit 889140448d8a34cd1e17ef39aa15f8ca26ff2f0a. Update comments - Add @foolip's suggestion from https://github.com/web-platform-tests/wpt/pull/38806#discussion_r1126193183 - Also, update comment at the top with better phrasing. change referenced PR/CL --- ...yle-allowed-while-cloning-objects.sub.html | 203 +++++++++--------- css/cssom-view/negativeMargins.html | 2 - ...-setting-goes-cross-origin-domain.sub.html | 4 - infrastructure/README.md | 2 +- .../expected-fail/window-onload-test.html | 28 +++ resources/test/tests/unit/late-test.html | 14 +- resources/testharness.js | 5 + 7 files changed, 138 insertions(+), 120 deletions(-) create mode 100644 infrastructure/expected-fail/window-onload-test.html diff --git a/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html b/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html index e99699410e00b5..f702e6eb9d65fa 100644 --- a/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html +++ b/content-security-policy/style-src/inline-style-allowed-while-cloning-objects.sub.html @@ -8,119 +8,108 @@ diff --git a/css/cssom-view/negativeMargins.html b/css/cssom-view/negativeMargins.html index 0616e8b4999e73..0deb7ca623e9ba 100644 --- a/css/cssom-view/negativeMargins.html +++ b/css/cssom-view/negativeMargins.html @@ -9,7 +9,6 @@ Hello diff --git a/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-goes-cross-origin-domain.sub.html b/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-goes-cross-origin-domain.sub.html index 239fa6ddf2fc3a..c2a6def6c240b4 100644 --- a/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-goes-cross-origin-domain.sub.html +++ b/html/browsers/the-windowproxy-exotic-object/windowproxy-prototype-setting-goes-cross-origin-domain.sub.html @@ -12,8 +12,6 @@ diff --git a/infrastructure/README.md b/infrastructure/README.md index 7d0ec556aa45e6..9e25c40d83ed7f 100644 --- a/infrastructure/README.md +++ b/infrastructure/README.md @@ -2,7 +2,7 @@ This directory contains a number of tests to ensure test running infrastructure is operating correctly: * The tests in assumptions/ are designed to test UA assumptions - documented in [assumptions.md](/docs/_writing-tests/assumptions.md). + documented in [assumptions.md](/docs/writing-tests/assumptions.md). * The tests in server/ are designed to test the WPT server configuration diff --git a/infrastructure/expected-fail/window-onload-test.html b/infrastructure/expected-fail/window-onload-test.html new file mode 100644 index 00000000000000..b0514bce045aa8 --- /dev/null +++ b/infrastructure/expected-fail/window-onload-test.html @@ -0,0 +1,28 @@ + + + + + + diff --git a/resources/test/tests/unit/late-test.html b/resources/test/tests/unit/late-test.html index 693d7e3c818ed7..c9f8ec61fe58c3 100644 --- a/resources/test/tests/unit/late-test.html +++ b/resources/test/tests/unit/late-test.html @@ -10,11 +10,12 @@

This test simulates an automated test running scenario, where the test results emitted by testharness.js may be interpreted after some delay. It is intended to demonstrate that in such cases, any additional tests which are -executed during that delay are not included in the dataset.

+executed during that delay are included in the dataset.

-

Although these "late" tests are likely an indication of a mistake in test -design, they cannot be detected deterministically, so in the interest of -stability, they should be silently tolerated.

+

Although these "late tests" are likely an indication of a mistake in test +design, they are also recorded. Previously, "late tests" were ignored. +This test changed to assert "late tests" were no longer ignored after +https://github.com/web-platform-tests/wpt/pull/38806 was introduced.