diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 6f0b39a8648..0681b77f4ec 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -130291,6 +130291,18 @@ {} ] ], + "css/css-multicol/multicol-overflow-clip-positioned.html": [ + [ + "css/css-multicol/multicol-overflow-clip-positioned.html", + [ + [ + "/css/css-multicol/multicol-overflow-clip-positioned-ref.html", + "==" + ] + ], + {} + ] + ], "css/css-multicol/multicol-overflowing-001.xht": [ [ "css/css-multicol/multicol-overflowing-001.xht", @@ -201726,6 +201738,18 @@ ], {} ] + ], + "xhtml/adopt-while-parsing-001.html": [ + [ + "xhtml/adopt-while-parsing-001.html", + [ + [ + "/xhtml/adopt-while-parsing-001-ref.html", + "==" + ] + ], + {} + ] ] }, "reftest_node": { @@ -270360,6 +270384,11 @@ {} ] ], + "css/css-multicol/multicol-overflow-clip-positioned-ref.html": [ + [ + {} + ] + ], "css/css-multicol/multicol-overflowing-001-ref.xht": [ [ {} @@ -292215,6 +292244,31 @@ {} ] ], + "feature-policy/parameters/feature-parameters-inf.html": [ + [ + {} + ] + ], + "feature-policy/parameters/feature-parameters-inf.html.headers": [ + [ + {} + ] + ], + "feature-policy/parameters/feature-parameters.html.headers": [ + [ + {} + ] + ], + "feature-policy/parameters/resources/feature-parameters-frame.html": [ + [ + {} + ] + ], + "feature-policy/parameters/resources/sample-1.png": [ + [ + {} + ] + ], "feature-policy/payment-allowed-by-feature-policy.https.sub.html.headers": [ [ {} @@ -308850,6 +308904,11 @@ {} ] ], + "portals/resources/portal-create-orphaned.html": [ + [ + {} + ] + ], "portals/resources/portal-cross-origin.sub.html": [ [ {} @@ -326485,21 +326544,6 @@ {} ] ], - "upgrade-insecure-requests/support/pass.png": [ - [ - {} - ] - ], - "upgrade-insecure-requests/support/pass.png.headers": [ - [ - {} - ] - ], - "upgrade-insecure-requests/support/post-origin-to-parent.html": [ - [ - {} - ] - ], "upgrade-insecure-requests/support/redirect-cors.py": [ [ {} @@ -326510,16 +326554,6 @@ {} ] ], - "upgrade-insecure-requests/support/worker.js": [ - [ - {} - ] - ], - "upgrade-insecure-requests/support/worker.js.headers": [ - [ - {} - ] - ], "url/META.yml": [ [ {} @@ -331954,6 +331988,16 @@ [ {} ] + ], + "xhtml/adopt-while-parsing-001-ref.html": [ + [ + {} + ] + ], + "xhtml/adopt-while-parsing.xhtml": [ + [ + {} + ] ] }, "testharness": { @@ -380797,6 +380841,18 @@ } ] ], + "feature-policy/parameters/feature-parameters-with-frames.html": [ + [ + "feature-policy/parameters/feature-parameters-with-frames.html", + {} + ] + ], + "feature-policy/parameters/feature-parameters.html": [ + [ + "feature-policy/parameters/feature-parameters.html", + {} + ] + ], "feature-policy/payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html": [ [ "feature-policy/payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html", @@ -416046,6 +416102,12 @@ {} ] ], + "portals/portals-create-orphaned.html": [ + [ + "portals/portals-create-orphaned.html", + {} + ] + ], "portals/portals-cross-origin-load.sub.html": [ [ "portals/portals-cross-origin-load.sub.html", @@ -485890,7 +485952,7 @@ "support" ], "common/security-features/resources/common.js": [ - "678d2a0d8fa7001e5dcd2204b6f2b548d0b913c1", + "8b9bd0d0372a0814a6e5785abc64a26763d35edc", "support" ], "common/security-features/subresource/__init__.py": [ @@ -485914,7 +485976,7 @@ "support" ], "common/security-features/subresource/image.py": [ - "d132889412372e7f764fe98159897fcacc009bbb", + "42ebc0767bbea9d3d50f4a3f23c7863748e6908d", "support" ], "common/security-features/subresource/script.py": [ @@ -505870,7 +505932,7 @@ "testharness" ], "content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html": [ - "692db02b6fc5392b08cfcfeb98b88553cb6f72bd", + "bf655a2e1b9512065fe19bd0e8f099b70c13eb5c", "testharness" ], "content-security-policy/securitypolicyviolation/upgrade-insecure-requests-reporting.https.html.headers": [ @@ -594141,6 +594203,14 @@ "3fa9ed51fbb0141534d82e62b0f14fd6cf2efa13", "reftest" ], + "css/css-multicol/multicol-overflow-clip-positioned-ref.html": [ + "58f1d57bc39beed37d14eea0dc9c1cbc47c33717", + "support" + ], + "css/css-multicol/multicol-overflow-clip-positioned.html": [ + "184bfc7f18dadbade32192b777c6b21f345882af", + "reftest" + ], "css/css-multicol/multicol-overflowing-001-ref.xht": [ "d3a6c6e03c58c17f0dfa4f2e6d9b945e352216af", "support" @@ -626446,7 +626516,7 @@ "testharness" ], "css/cssom-view/scrollintoview.html": [ - "c69025b4943accd4c0b34e74dbd7862af2521849", + "584ab4b60329d7cd1081edac93a375b7069634ea", "testharness" ], "css/cssom-view/support/1x1-green.png": [ @@ -645722,11 +645792,11 @@ "support" ], "feature-policy/experimental-features/lazyload/lazyload-enabled-image-tentative.sub.html": [ - "e277d9e8ad42307e9ab47038b534f8fc974c492b", + "a9e2b295d5034d37c518cf0609590ec3065df70c", "testharness" ], "feature-policy/experimental-features/lazyload/lazyload-enabled-tentative.sub.html": [ - "ebed07bab5abdd15dc95a84eddd03bc4907386be", + "3a2f469b25046629113cb2b97df09fa1e56e849e", "testharness" ], "feature-policy/experimental-features/lazyload/lazyload-enabled-tentative.sub.html.headers": [ @@ -645997,6 +646067,34 @@ "33bbe3c14ffe28d961cc4c71c0b367028ff8d2df", "testharness" ], + "feature-policy/parameters/feature-parameters-inf.html": [ + "db21427c8ed9f3c2f8e8b8ba9d91d4fd230fc2ff", + "support" + ], + "feature-policy/parameters/feature-parameters-inf.html.headers": [ + "1ec003431b3f090dbb596f6973b84f81de27ace0", + "support" + ], + "feature-policy/parameters/feature-parameters-with-frames.html": [ + "de0a3ab1e3963e3e7c8da1e6bec35d454b1a9fdb", + "testharness" + ], + "feature-policy/parameters/feature-parameters.html": [ + "9830f93eb4dcac9aaa2dfe6d209c452df5f94701", + "testharness" + ], + "feature-policy/parameters/feature-parameters.html.headers": [ + "b4fa805c5696ab5ef8171508aeccf200e9d95df3", + "support" + ], + "feature-policy/parameters/resources/feature-parameters-frame.html": [ + "4f01f85795da8114e762cb0ddc271cefdd02da1f", + "support" + ], + "feature-policy/parameters/resources/sample-1.png": [ + "92901925c6082b7fb01fade09f87356308218a47", + "support" + ], "feature-policy/payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html": [ "daa2aa182daed73bd51bf32cf7981a805e3956c8", "testharness" @@ -646410,7 +646508,7 @@ "support" ], "feature-policy/resources/featurepolicy.js": [ - "e2577f35c3fb53abda3934274c3e6a281ba617d9", + "744c4c62069508061567d8ac758920beab8e1335", "support" ], "feature-policy/resources/picture-in-picture.js": [ @@ -683037,6 +683135,10 @@ "63a6d75dc42ef552c237a5c092e3a8c702bd27a8", "testharness" ], + "portals/portals-create-orphaned.html": [ + "903186ff6c69b12f888286cd8dbca8cbfa0568dc", + "testharness" + ], "portals/portals-cross-origin-load.sub.html": [ "f860ac54dc9dc6578fa1a66c25da70bc3262d995", "testharness" @@ -683093,6 +683195,10 @@ "dc161c0e0b82da493aba1cb8fbefb4262b203a48", "support" ], + "portals/resources/portal-create-orphaned.html": [ + "89b927f649b9db28fdbbb1ed8d023c33203595ce", + "support" + ], "portals/resources/portal-cross-origin.sub.html": [ "145ab5a2d21295f615d3ecd5d36f9e3034a4202a", "support" @@ -710798,19 +710904,7 @@ "testharness" ], "upgrade-insecure-requests/support/generate.py": [ - "8c8cca21273013693d94ecdae3bc401f08dc1241", - "support" - ], - "upgrade-insecure-requests/support/pass.png": [ - "2fa1e0ac0663a65deae6602621521cc2844b93de", - "support" - ], - "upgrade-insecure-requests/support/pass.png.headers": [ - "cb762eff806849df46dc758ef7b98b63f27f54c9", - "support" - ], - "upgrade-insecure-requests/support/post-origin-to-parent.html": [ - "4f596ef4dce2b8a76e92b4d7a267547ee28c43a7", + "4fb7078e7709bd1541df8cc61bbcfa449bc14b37", "support" ], "upgrade-insecure-requests/support/redirect-cors.py": [ @@ -710818,15 +710912,7 @@ "support" ], "upgrade-insecure-requests/support/testharness-helper.sub.js": [ - "70378edd15e6a9423c91ca6d301f4e66e195e998", - "support" - ], - "upgrade-insecure-requests/support/worker.js": [ - "7e2168bcc06e0dd0832f42c28ef9ba3f7c2d84bf", - "support" - ], - "upgrade-insecure-requests/support/worker.js.headers": [ - "cb762eff806849df46dc758ef7b98b63f27f54c9", + "2c854534d56f5cf3d17660b582156c7f8de4e1cd", "support" ], "upgrade-insecure-requests/websocket-upgrade.https.html": [ @@ -710838,11 +710924,11 @@ "testharness" ], "upgrade-insecure-requests/worker-subresource-fetch-redirect-upgrade.https.html": [ - "b2ce2cfe4043d2d022a775c77244144b4dfdb5d2", + "948dd6566c2a1fae7b015c3bf15a4a43fdb3c06d", "testharness" ], "upgrade-insecure-requests/worker-subresource-fetch-upgrade.https.html": [ - "1639363e898b8faae7cb4fed0014696e6147d8f5", + "bc98b9f2d0680047d4808c5c22872246a8496dbb", "testharness" ], "upgrade-insecure-requests/worker-upgrade.https.html": [ @@ -715938,7 +716024,7 @@ "testharness" ], "webrtc/RTCDataChannel-id.html": [ - "4c16547ca780c5285fbb2a264bfaf7b10b43eab6", + "0cf01976ff0eeb66c51ded321e777123f063b02c", "testharness" ], "webrtc/RTCDataChannel-send.html": [ @@ -716014,7 +716100,7 @@ "testharness" ], "webrtc/RTCPeerConnection-createDataChannel.html": [ - "ae74b62d42c3de9254c62a6e974e578416fc7c92", + "8a13155358de3dab22a77f50172aae5bf0789b43", "testharness" ], "webrtc/RTCPeerConnection-createOffer.html": [ @@ -716054,7 +716140,7 @@ "testharness" ], "webrtc/RTCPeerConnection-ondatachannel.html": [ - "711027439b3ab4b38a18d91a2c9a1eaee7e4b3af", + "2fd33ca541148ca6a7be5f5624e303795c7c458d", "testharness" ], "webrtc/RTCPeerConnection-onnegotiationneeded.html": [ @@ -720814,7 +720900,7 @@ "testharness" ], "webxr/xrRigidTransform_inverse.https.html": [ - "ddae2af6469034e67dc579dfd6cfb53b86f28d6a", + "e795a99538e27d7a85a75c652b9b972d119e91d6", "testharness" ], "webxr/xrRigidTransform_matrix.https.html": [ @@ -720850,7 +720936,7 @@ "testharness" ], "webxr/xrSession_requestAnimationFrame_data_valid.https.html": [ - "6c567d2fda6888ee0b30e4f4716e75ee4763516d", + "2278666a1d7cfc43362b5e09ddf0df25fef42681", "testharness" ], "webxr/xrSession_requestAnimationFrame_getViewerPose.https.html": [ @@ -724272,6 +724358,18 @@ "xhr/xmlhttprequest-unsent.htm": [ "eb52d63eef971895f69f1b0151baa457250dd452", "testharness" + ], + "xhtml/adopt-while-parsing-001-ref.html": [ + "5b512e72f5a1f3780c9c38be79968b095c277a39", + "support" + ], + "xhtml/adopt-while-parsing-001.html": [ + "74018b4ad0f342aa5b38ad337ce9329e6d92545d", + "reftest" + ], + "xhtml/adopt-while-parsing.xhtml": [ + "2d85d21558b1778e17376d12424f81c703c0c262", + "support" ] }, "url_base": "/", diff --git a/tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini b/tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini index 2dc6574f235..3ea58427d6a 100644 --- a/tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini +++ b/tests/wpt/metadata/css/css-fonts/variations/at-font-face-font-matching.html.ini @@ -140,12 +140,6 @@ [Matching font-stretch: '90%' should prefer '50% 80%' over '60% 70%'] expected: FAIL - [Matching font-stretch: '90%' should prefer '110% 140%' over '120% 130%'] - expected: FAIL - - [Matching font-style: 'normal' should prefer 'normal' over 'oblique 0deg'] - expected: FAIL - [Matching font-style: 'normal' should prefer 'oblique 0deg' over 'oblique 10deg 40deg'] expected: FAIL @@ -176,9 +170,6 @@ [Matching font-style: 'oblique -10deg' should prefer 'oblique -5deg' over 'oblique -1deg 0deg'] expected: FAIL - [Matching font-weight: '399' should prefer '350 399' over '340 360'] - expected: FAIL - [Matching font-weight: '500' should prefer '450 460' over '400'] expected: FAIL @@ -314,9 +305,6 @@ [Matching font-style: 'oblique -20deg' should prefer 'oblique 30deg 60deg' over 'oblique 40deg 50deg'] expected: FAIL - [Matching font-weight: '400' should prefer '450 460' over '500'] - expected: FAIL - [Matching font-weight: '399' should prefer '450 460' over '500 501'] expected: FAIL @@ -332,6 +320,3 @@ [Matching font-stretch: '90%' should prefer '90% 100%' over '50% 80%'] expected: FAIL - [Matching font-weight: '400' should prefer '400' over '450 460'] - expected: FAIL - diff --git a/tests/wpt/metadata/fetch/content-type/response.window.js.ini b/tests/wpt/metadata/fetch/content-type/response.window.js.ini index 86bb304a673..18f786d4963 100644 --- a/tests/wpt/metadata/fetch/content-type/response.window.js.ini +++ b/tests/wpt/metadata/fetch/content-type/response.window.js.ini @@ -163,7 +163,7 @@ expected: NOTRUN [ + + + + + + + + diff --git a/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html b/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html new file mode 100644 index 00000000000..9830f93eb4d --- /dev/null +++ b/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html @@ -0,0 +1,28 @@ + + + + + + + + Test oversized-images policy with threshold 1.5 + + + + + + +
+ + + +
+ + + + + + + diff --git a/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html.headers b/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html.headers new file mode 100644 index 00000000000..b4fa805c569 --- /dev/null +++ b/tests/wpt/web-platform-tests/feature-policy/parameters/feature-parameters.html.headers @@ -0,0 +1 @@ +Feature-Policy: oversized-images (1.5) diff --git a/tests/wpt/web-platform-tests/feature-policy/parameters/resources/feature-parameters-frame.html b/tests/wpt/web-platform-tests/feature-policy/parameters/resources/feature-parameters-frame.html new file mode 100644 index 00000000000..4f01f85795d --- /dev/null +++ b/tests/wpt/web-platform-tests/feature-policy/parameters/resources/feature-parameters-frame.html @@ -0,0 +1,50 @@ + + + + + + + + Test oversized-images policy in subframe + + + + + + + + + + + diff --git a/tests/wpt/web-platform-tests/feature-policy/parameters/resources/sample-1.png b/tests/wpt/web-platform-tests/feature-policy/parameters/resources/sample-1.png new file mode 100644 index 00000000000..92901925c60 Binary files /dev/null and b/tests/wpt/web-platform-tests/feature-policy/parameters/resources/sample-1.png differ diff --git a/tests/wpt/web-platform-tests/feature-policy/resources/featurepolicy.js b/tests/wpt/web-platform-tests/feature-policy/resources/featurepolicy.js index e2577f35c3f..744c4c62069 100644 --- a/tests/wpt/web-platform-tests/feature-policy/resources/featurepolicy.js +++ b/tests/wpt/web-platform-tests/feature-policy/resources/featurepolicy.js @@ -433,3 +433,16 @@ function test_frame_policy( assert_false(frame_policy.allowedFeatures().includes(feature)); } } + +function expect_reports(report_count, policy_name, description) { + async_test(t => { + var num_received_reports = 0; + new ReportingObserver(t.step_func((reports, observer) => { + const relevant_reports = reports.filter(r => (r.body.featureId === policy_name)); + num_received_reports += relevant_reports.length; + if (num_received_reports >= report_count) { + t.done(); + } + }), {types: ['feature-policy-violation'], buffered: true}).observe(); + }, description); +} diff --git a/tests/wpt/web-platform-tests/portals/portals-create-orphaned.html b/tests/wpt/web-platform-tests/portals/portals-create-orphaned.html new file mode 100644 index 00000000000..903186ff6c6 --- /dev/null +++ b/tests/wpt/web-platform-tests/portals/portals-create-orphaned.html @@ -0,0 +1,19 @@ + + + + + + diff --git a/tests/wpt/web-platform-tests/portals/resources/portal-create-orphaned.html b/tests/wpt/web-platform-tests/portals/resources/portal-create-orphaned.html new file mode 100644 index 00000000000..89b927f649b --- /dev/null +++ b/tests/wpt/web-platform-tests/portals/resources/portal-create-orphaned.html @@ -0,0 +1,28 @@ + + + + diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/generate.py b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/generate.py index 8c8cca21273..4fb7078e770 100644 --- a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/generate.py +++ b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/generate.py @@ -33,8 +33,8 @@ for name, resourceType in [ ('layout-worklet', 'WORKLET'), ('paint-worklet', 'WORKLET'), ('worker', 'WORKER'), ('module-worker', 'WORKER'), - ('worker-subresource-xhr', 'IMAGE'), - ('worker-subresource-fetch', 'IMAGE')]: + ('worker-subresource-xhr', 'FETCH'), + ('worker-subresource-fetch', 'FETCH')]: sameOriginOnly = 'true' if resourceType == 'WORKER' else 'false' types = [('', 'generateTests'), ('-redirect', 'generateRedirectTests')] if name == 'module-worker' or resourceType == 'WORKLET': diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png deleted file mode 100644 index 2fa1e0ac066..00000000000 Binary files a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png and /dev/null differ diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png.headers b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png.headers deleted file mode 100644 index cb762eff806..00000000000 --- a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/pass.png.headers +++ /dev/null @@ -1 +0,0 @@ -Access-Control-Allow-Origin: * diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/post-origin-to-parent.html b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/post-origin-to-parent.html deleted file mode 100644 index 4f596ef4dce..00000000000 --- a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/post-origin-to-parent.html +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/testharness-helper.sub.js b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/testharness-helper.sub.js index 70378edd15e..2c854534d56 100644 --- a/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/testharness-helper.sub.js +++ b/tests/wpt/web-platform-tests/upgrade-insecure-requests/support/testharness-helper.sub.js @@ -20,6 +20,7 @@ const ResourceType = { WORKER: "worker", WORKLET: "worklet", WEBSOCKET: "websocket", + FETCH: "fetch", }; // These tests rely on some unintuitive cleverness due to WPT's test setup: @@ -27,22 +28,24 @@ const ResourceType = { // in the form `http://[domain]:[https-port]`. If the upgrade fails, the load will fail, // as we don't serve HTTP over the secure port. function generateURL(host, protocol, resourceType) { - var url = new URL("http://{{host}}:{{ports[https][0]}}/upgrade-insecure-requests/support/"); + var url = new URL("http://{{host}}:{{ports[https][0]}}/common/security-features/subresource/"); url.protocol = protocol == Protocol.INSECURE ? "http" : "https"; url.hostname = host == Host.SAME_ORIGIN ? "{{host}}" : "{{domains[天気の良い日]}}"; if (resourceType == ResourceType.IMAGE) { - url.pathname += "pass.png"; + url.pathname += "image.py"; } else if (resourceType == ResourceType.FRAME) { - url.pathname += "post-origin-to-parent.html"; + url.pathname += "document.py"; } else if (resourceType == ResourceType.WEBSOCKET) { url.port = {{ports[wss][0]}}; url.protocol = protocol == Protocol.INSECURE ? "ws" : "wss"; url.pathname = "echo"; } else if (resourceType == ResourceType.WORKER) { - url.pathname += "worker.js"; + url.pathname += "worker.py"; } else if (resourceType == ResourceType.WORKLET) { - url.pathname = "/worklets/resources/empty-worklet-script-with-cors-header.js"; + url.pathname += "worker.py"; + } else if (resourceType == ResourceType.FETCH) { + url.pathname += "xhr.py"; } return { name: protocol + "/" + host + " " + resourceType, @@ -110,24 +113,24 @@ function generateModuleImportTests(target, sameOriginOnly) { return tests; } -function assert_image_loads(test, url, height, width) { +function assert_image_loads(test, url) { var i = document.createElement('img'); i.onload = test.step_func_done(_ => { - assert_equals(i.naturalHeight, height, "Height."); - assert_equals(i.naturalWidth, width, "Width."); + assert_greater_than(i.naturalHeight, 0, "Height."); + assert_greater_than(i.naturalWidth, 0, "Width."); }); i.onerror = test.unreached_func(url + " should load successfully."); i.src = url; } -function assert_image_loads_in_srcdoc(test, url, height, width) { +function assert_image_loads_in_srcdoc(test, url) { var frame = document.createElement('iframe'); frame.srcdoc = "yay!"; frame.onload = _ => { var i = frame.contentDocument.createElement('img'); i.onload = test.step_func_done(_ => { - assert_equals(i.naturalHeight, height, "Height."); - assert_equals(i.naturalWidth, width, "Width."); + assert_greater_than(i.naturalHeight, 0, "Height."); + assert_greater_than(i.naturalWidth, 0, "Width."); frame.remove(); }); i.onerror = test.unreached_func(url + " should load successfully."); @@ -137,13 +140,13 @@ function assert_image_loads_in_srcdoc(test, url, height, width) { document.body.appendChild(frame); } -function assert_image_loads_in_blank(test, url, height, width) { +function assert_image_loads_in_blank(test, url) { var frame = document.createElement('iframe'); frame.onload = _ => { var i = frame.contentDocument.createElement('img'); i.onload = test.step_func_done(_ => { - assert_equals(i.naturalHeight, height, "Height."); - assert_equals(i.naturalWidth, width, "Width."); + assert_greater_than(i.naturalHeight, 0, "Height."); + assert_greater_than(i.naturalWidth, 0, "Width."); frame.remove(); }); i.onerror = test.unreached_func(url + " should load successfully."); @@ -153,20 +156,6 @@ function assert_image_loads_in_blank(test, url, height, width) { document.body.appendChild(frame); } -function assert_frame_loads(test, url) { - var i = document.createElement('iframe'); - - window.addEventListener('message', test.step_func(e => { - if (e.source == i.contentWindow) { - i.remove(); - test.done(); - } - })); - - i.src = url; - document.body.appendChild(i); -} - function assert_websocket_loads(test, url) { var w = new WebSocket(url, "echo"); w.onopen = test.step_func(_ => { @@ -178,12 +167,12 @@ function assert_websocket_loads(test, url) { const testMap = { "image": test => { - async_test(t => assert_image_loads(t, test.url, 64, 168), test.name); - async_test(t => assert_image_loads_in_srcdoc(t, test.url, 64, 168), test.name + " in +
+ PASS +
diff --git a/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing-001.html b/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing-001.html new file mode 100644 index 00000000000..74018b4ad0f --- /dev/null +++ b/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing-001.html @@ -0,0 +1,19 @@ + +Appending from the parser after adopting in an XML document doesn't miss notifications + + + + + + + diff --git a/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing.xhtml b/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing.xhtml new file mode 100644 index 00000000000..2d85d21558b --- /dev/null +++ b/tests/wpt/web-platform-tests/xhtml/adopt-while-parsing.xhtml @@ -0,0 +1,11 @@ + + + + +
+ PASS +
+ +