From 57995f411efb222c619e74a40f3e94c21a62a052 Mon Sep 17 00:00:00 2001 From: Maja Kabus Date: Wed, 15 Aug 2018 09:58:14 +0000 Subject: [PATCH] Bug 1477637 [wpt PR 12140] - Replaced HTML*Element tests with two generic test files, a=testonly Automatic update from web-platform-testsReplaced HTML*Element tests with two generic test files HTML*Element href and src test files merged into two HTMLElement-generic test files. Bug: 739170 Change-Id: I3cf49c9d72540c7f51439fb157f1d201048a349e Reviewed-on: https://chromium-review.googlesource.com/1146567 Commit-Queue: Mike West Reviewed-by: Mike West Cr-Commit-Position: refs/heads/master@{#582550} -- wpt-commits: af5652d49d6e52dcb26dd5dd07e60a57fcc60de1 wpt-pr: 12140 --- testing/web-platform/meta/MANIFEST.json | 278 +----------------- .../HTMLAnchorElement-href.tentative.html | 21 -- .../HTMLAreaElement-href.tentative.html | 25 -- .../HTMLBaseElement-href.tentative.html | 24 -- .../HTMLElement-generic.tentative.html | 43 +++ .../HTMLIFrameElement-src.tentative.html | 23 -- .../HTMLImageElement-src.tentative.html | 24 -- .../HTMLLinkElement-href.tentative.html | 21 -- .../HTMLMediaElement-src.tentative.html | 23 -- .../HTMLObjectElement.tentative.html | 23 -- .../HTMLSourceElement-src.tentative.html | 22 -- ...t-to-HTMLAnchorElement-href.tentative.html | 43 --- ...ent-to-HTMLAreaElement-href.tentative.html | 46 --- ...ent-to-HTMLBaseElement-href.tentative.html | 43 --- ...ment-to-HTMLElement-generic.tentative.html | 50 ++++ ...nt-to-HTMLIFrameElement-src.tentative.html | 33 --- ...ent-to-HTMLImageElement-src.tentative.html | 33 --- ...ent-to-HTMLLinkElement-href.tentative.html | 43 --- ...ent-to-HTMLMediaElement-src.tentative.html | 33 --- ...gnment-to-HTMLObjectElement.tentative.html | 60 ---- ...nt-to-HTMLSourceElement-src.tentative.html | 36 --- ...ing-assignment-to-embed-src.tentative.html | 56 ---- ...ing-assignment-to-frame-src.tentative.html | 33 --- ...ing-assignment-to-input-src.tentative.html | 33 --- ...ng-assignment-to-script-src.tentative.html | 56 ---- ...ing-assignment-to-track-src.tentative.html | 33 --- .../trusted-types/embed-src.tentative.html | 30 -- .../trusted-types/frame-src.tentative.html | 23 -- .../trusted-types/input-src.tentative.html | 23 -- .../trusted-types/script-src.tentative.html | 30 -- .../tests/trusted-types/support/helper.sub.js | 28 ++ .../trusted-types/track-src.tentative.html | 23 -- 32 files changed, 130 insertions(+), 1185 deletions(-) delete mode 100644 testing/web-platform/tests/trusted-types/HTMLAnchorElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLAreaElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLBaseElement-href.tentative.html create mode 100644 testing/web-platform/tests/trusted-types/HTMLElement-generic.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLIFrameElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLImageElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLLinkElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLMediaElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLObjectElement.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/HTMLSourceElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html create mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-embed-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-frame-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-input-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-script-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/block-string-assignment-to-track-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/embed-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/frame-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/input-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/script-src.tentative.html delete mode 100644 testing/web-platform/tests/trusted-types/track-src.tentative.html diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 0787938c9d57..5482e6d41199 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -392135,57 +392135,9 @@ {} ] ], - "trusted-types/HTMLAnchorElement-href.tentative.html": [ + "trusted-types/HTMLElement-generic.tentative.html": [ [ - "/trusted-types/HTMLAnchorElement-href.tentative.html", - {} - ] - ], - "trusted-types/HTMLAreaElement-href.tentative.html": [ - [ - "/trusted-types/HTMLAreaElement-href.tentative.html", - {} - ] - ], - "trusted-types/HTMLBaseElement-href.tentative.html": [ - [ - "/trusted-types/HTMLBaseElement-href.tentative.html", - {} - ] - ], - "trusted-types/HTMLIFrameElement-src.tentative.html": [ - [ - "/trusted-types/HTMLIFrameElement-src.tentative.html", - {} - ] - ], - "trusted-types/HTMLImageElement-src.tentative.html": [ - [ - "/trusted-types/HTMLImageElement-src.tentative.html", - {} - ] - ], - "trusted-types/HTMLLinkElement-href.tentative.html": [ - [ - "/trusted-types/HTMLLinkElement-href.tentative.html", - {} - ] - ], - "trusted-types/HTMLMediaElement-src.tentative.html": [ - [ - "/trusted-types/HTMLMediaElement-src.tentative.html", - {} - ] - ], - "trusted-types/HTMLObjectElement.tentative.html": [ - [ - "/trusted-types/HTMLObjectElement.tentative.html", - {} - ] - ], - "trusted-types/HTMLSourceElement-src.tentative.html": [ - [ - "/trusted-types/HTMLSourceElement-src.tentative.html", + "/trusted-types/HTMLElement-generic.tentative.html", {} ] ], @@ -392219,57 +392171,9 @@ {} ] ], - "trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html": [ + "trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html": [ [ - "/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html", + "/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html", {} ] ], @@ -392279,30 +392183,12 @@ {} ] ], - "trusted-types/block-string-assignment-to-embed-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-embed-src.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-frame-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-frame-src.tentative.html", - {} - ] - ], "trusted-types/block-string-assignment-to-innerHTML.tentative.html": [ [ "/trusted-types/block-string-assignment-to-innerHTML.tentative.html", {} ] ], - "trusted-types/block-string-assignment-to-input-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-input-src.tentative.html", - {} - ] - ], "trusted-types/block-string-assignment-to-insertAdjacentHTML.tentative.html": [ [ "/trusted-types/block-string-assignment-to-insertAdjacentHTML.tentative.html", @@ -392333,18 +392219,6 @@ {} ] ], - "trusted-types/block-string-assignment-to-script-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-script-src.tentative.html", - {} - ] - ], - "trusted-types/block-string-assignment-to-track-src.tentative.html": [ - [ - "/trusted-types/block-string-assignment-to-track-src.tentative.html", - {} - ] - ], "trusted-types/block-string-assignment-to-window-open.tentative.html": [ [ "/trusted-types/block-string-assignment-to-window-open.tentative.html", @@ -392363,30 +392237,12 @@ {} ] ], - "trusted-types/embed-src.tentative.html": [ - [ - "/trusted-types/embed-src.tentative.html", - {} - ] - ], - "trusted-types/frame-src.tentative.html": [ - [ - "/trusted-types/frame-src.tentative.html", - {} - ] - ], "trusted-types/innerHTML.tentative.html": [ [ "/trusted-types/innerHTML.tentative.html", {} ] ], - "trusted-types/input-src.tentative.html": [ - [ - "/trusted-types/input-src.tentative.html", - {} - ] - ], "trusted-types/insertAdjacentHTML.tentative.html": [ [ "/trusted-types/insertAdjacentHTML.tentative.html", @@ -392417,12 +392273,6 @@ {} ] ], - "trusted-types/script-src.tentative.html": [ - [ - "/trusted-types/script-src.tentative.html", - {} - ] - ], "trusted-types/srcDoc-requiresTrustedTypes.tentative.html": [ [ "/trusted-types/srcDoc-requiresTrustedTypes.tentative.html", @@ -392435,12 +392285,6 @@ {} ] ], - "trusted-types/track-src.tentative.html": [ - [ - "/trusted-types/track-src.tentative.html", - {} - ] - ], "trusted-types/window-open.tentative.html": [ [ "/trusted-types/window-open.tentative.html", @@ -642486,40 +642330,8 @@ "53d2b44febd6510b4216bb21cb22a83ed6663e5b", "testharness" ], - "trusted-types/HTMLAnchorElement-href.tentative.html": [ - "33c8989642a5a6e1ae3482cdaff2a39a402e40f8", - "testharness" - ], - "trusted-types/HTMLAreaElement-href.tentative.html": [ - "8ac509d34b21a2a396cbd3dbcf7859b06fbd7f0a", - "testharness" - ], - "trusted-types/HTMLBaseElement-href.tentative.html": [ - "80bed8079818047917b72b12d2d108ca51510e57", - "testharness" - ], - "trusted-types/HTMLIFrameElement-src.tentative.html": [ - "6e89a0f397e4014550ae16842199bfc62c4125d5", - "testharness" - ], - "trusted-types/HTMLImageElement-src.tentative.html": [ - "5797aa5079e6fb3f3e4e7a83af524b6b2ef6a013", - "testharness" - ], - "trusted-types/HTMLLinkElement-href.tentative.html": [ - "7f6e7e23e872026346c952fb3a3cbd1708a18397", - "testharness" - ], - "trusted-types/HTMLMediaElement-src.tentative.html": [ - "c54dfddd8278853ca73b696ab05d05ac7e03a458", - "testharness" - ], - "trusted-types/HTMLObjectElement.tentative.html": [ - "a9dcc94a43ba2cc96a960057dbdeab89a093bc1a", - "testharness" - ], - "trusted-types/HTMLSourceElement-src.tentative.html": [ - "6791a0fc118be18ae997806c347177246c05e147", + "trusted-types/HTMLElement-generic.tentative.html": [ + "486b008986bc4e3328c8b709674359538d408800", "testharness" ], "trusted-types/META.yml": [ @@ -642546,62 +642358,18 @@ "ef4487749dd0c12a00bd3ab42c1353467a6eeb8f", "testharness" ], - "trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html": [ - "53334e2e810bb27900908ccdf71105c0a687f016", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html": [ - "5879d1c330e3b7503de80a8f7b0bb61b34b2cf41", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html": [ - "a973e29f2758034fac4b6c788f5ed6fe82ccb5d6", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html": [ - "8db0d60cdeb92f7ec456a1126c1a88175a002590", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html": [ - "44461067a3f13c9a9973761bfd036e74b2dda96c", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html": [ - "11950da775ee8917c0fa7d2b6c6090d748e27001", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html": [ - "38ac53f2027ee3b5289f3569d76ca30def09fbcb", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html": [ - "87e1f46464f7a6b08cc84344638ddc98714e2f0a", - "testharness" - ], - "trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html": [ - "37ab90cd700fa6bb766ebc185d9bb5e6c4734428", + "trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html": [ + "79bbb24f541b43123ef1d5f814fb3108275b974c", "testharness" ], "trusted-types/block-string-assignment-to-createContextualFragment.tentative.html": [ "1d67a51ff6ab1df879a59af5ee7c6ad9a0609be0", "testharness" ], - "trusted-types/block-string-assignment-to-embed-src.tentative.html": [ - "005dfe20be62cb72fefed836fc6d809e3dd118bc", - "testharness" - ], - "trusted-types/block-string-assignment-to-frame-src.tentative.html": [ - "c915e430a6d29c855663812fa453212f16268aa9", - "testharness" - ], "trusted-types/block-string-assignment-to-innerHTML.tentative.html": [ "67faf6ea7d30ebb76bb857faf0faf04743917dfb", "testharness" ], - "trusted-types/block-string-assignment-to-input-src.tentative.html": [ - "732ebe80d62ef8442b47b0789d045944f8410238", - "testharness" - ], "trusted-types/block-string-assignment-to-insertAdjacentHTML.tentative.html": [ "70bb803442f14cbdcb356be6f6cdceca83522008", "testharness" @@ -642622,14 +642390,6 @@ "8cf6c4b065a87f83015e5519ce86ecb6e1115e12", "testharness" ], - "trusted-types/block-string-assignment-to-script-src.tentative.html": [ - "ade76848209bebc46cc8eb4c011012742f385581", - "testharness" - ], - "trusted-types/block-string-assignment-to-track-src.tentative.html": [ - "b6f81e9d0e4576ed6dc0781164a6adacce6d5318", - "testharness" - ], "trusted-types/block-string-assignment-to-window-open.tentative.html": [ "2c3a8ce056685a5306472ee2e1a87bcbfc4c11e9", "testharness" @@ -642642,22 +642402,10 @@ "12794199722f6e2f078efa9ce9f91146c8ae9219", "testharness" ], - "trusted-types/embed-src.tentative.html": [ - "75760278fac4dc4e1dff94dd727f3c105dd8ae00", - "testharness" - ], - "trusted-types/frame-src.tentative.html": [ - "31a1ce919c24c063aeffe12a6a20cb4d9181e7d9", - "testharness" - ], "trusted-types/innerHTML.tentative.html": [ "f9f32d42a766346f5fd4e5fd18d8e20f7acba810", "testharness" ], - "trusted-types/input-src.tentative.html": [ - "8cbd0ad41721974bfaf8d2d4cf0ee88fa7272d02", - "testharness" - ], "trusted-types/insertAdjacentHTML.tentative.html": [ "a95dd6c0bacc9844d25e64453b66aab759c76ad7", "testharness" @@ -642678,10 +642426,6 @@ "1deb46bf5e3d102550575d5e79eaf05cdf9739f6", "testharness" ], - "trusted-types/script-src.tentative.html": [ - "7235cc3bca650db268a6bc1b85ca47ae1c80d352", - "testharness" - ], "trusted-types/srcDoc-requiresTrustedTypes.tentative.html": [ "b957488bee42d17b3160144b1cdaccfdfb8f1689", "testharness" @@ -642691,13 +642435,9 @@ "testharness" ], "trusted-types/support/helper.sub.js": [ - "036dbed7d1593f2ffe05d1fac4e00603b0ce6a37", + "91112d8f239069a9f88fdcffc46f5b2d49e49321", "support" ], - "trusted-types/track-src.tentative.html": [ - "cfe5374e41c56606c8499f32af8e87d0510bf50c", - "testharness" - ], "trusted-types/window-open.tentative.html": [ "66ffbd78399c70cca883ac55b6f380587bffc9ab", "testharness" diff --git a/testing/web-platform/tests/trusted-types/HTMLAnchorElement-href.tentative.html b/testing/web-platform/tests/trusted-types/HTMLAnchorElement-href.tentative.html deleted file mode 100644 index 33c8989642a5..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLAnchorElement-href.tentative.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLAreaElement-href.tentative.html b/testing/web-platform/tests/trusted-types/HTMLAreaElement-href.tentative.html deleted file mode 100644 index 8ac509d34b21..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLAreaElement-href.tentative.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLBaseElement-href.tentative.html b/testing/web-platform/tests/trusted-types/HTMLBaseElement-href.tentative.html deleted file mode 100644 index 80bed8079818..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLBaseElement-href.tentative.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLElement-generic.tentative.html b/testing/web-platform/tests/trusted-types/HTMLElement-generic.tentative.html new file mode 100644 index 000000000000..486b008986bc --- /dev/null +++ b/testing/web-platform/tests/trusted-types/HTMLElement-generic.tentative.html @@ -0,0 +1,43 @@ + + + + + + + + diff --git a/testing/web-platform/tests/trusted-types/HTMLIFrameElement-src.tentative.html b/testing/web-platform/tests/trusted-types/HTMLIFrameElement-src.tentative.html deleted file mode 100644 index 6e89a0f397e4..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLIFrameElement-src.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLImageElement-src.tentative.html b/testing/web-platform/tests/trusted-types/HTMLImageElement-src.tentative.html deleted file mode 100644 index 5797aa5079e6..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLImageElement-src.tentative.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLLinkElement-href.tentative.html b/testing/web-platform/tests/trusted-types/HTMLLinkElement-href.tentative.html deleted file mode 100644 index 7f6e7e23e872..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLLinkElement-href.tentative.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLMediaElement-src.tentative.html b/testing/web-platform/tests/trusted-types/HTMLMediaElement-src.tentative.html deleted file mode 100644 index c54dfddd8278..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLMediaElement-src.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLObjectElement.tentative.html b/testing/web-platform/tests/trusted-types/HTMLObjectElement.tentative.html deleted file mode 100644 index a9dcc94a43ba..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLObjectElement.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/HTMLSourceElement-src.tentative.html b/testing/web-platform/tests/trusted-types/HTMLSourceElement-src.tentative.html deleted file mode 100644 index 6791a0fc118b..000000000000 --- a/testing/web-platform/tests/trusted-types/HTMLSourceElement-src.tentative.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html deleted file mode 100644 index 53334e2e810b..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAnchorElement-href.tentative.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html deleted file mode 100644 index 5879d1c330e3..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLAreaElement-href.tentative.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html deleted file mode 100644 index a973e29f2758..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLBaseElement-href.tentative.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html new file mode 100644 index 000000000000..79bbb24f541b --- /dev/null +++ b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLElement-generic.tentative.html @@ -0,0 +1,50 @@ + + + + + + + + + + + diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html deleted file mode 100644 index 8db0d60cdeb9..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLIFrameElement-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html deleted file mode 100644 index 44461067a3f1..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLImageElement-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html deleted file mode 100644 index 11950da775ee..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLLinkElement-href.tentative.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html deleted file mode 100644 index 38ac53f2027e..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLMediaElement-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html deleted file mode 100644 index 87e1f46464f7..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLObjectElement.tentative.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html deleted file mode 100644 index 37ab90cd700f..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-HTMLSourceElement-src.tentative.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-embed-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-embed-src.tentative.html deleted file mode 100644 index 005dfe20be62..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-embed-src.tentative.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-frame-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-frame-src.tentative.html deleted file mode 100644 index c915e430a6d2..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-frame-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-input-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-input-src.tentative.html deleted file mode 100644 index 732ebe80d62e..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-input-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-script-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-script-src.tentative.html deleted file mode 100644 index ade76848209b..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-script-src.tentative.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/block-string-assignment-to-track-src.tentative.html b/testing/web-platform/tests/trusted-types/block-string-assignment-to-track-src.tentative.html deleted file mode 100644 index b6f81e9d0e45..000000000000 --- a/testing/web-platform/tests/trusted-types/block-string-assignment-to-track-src.tentative.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/embed-src.tentative.html b/testing/web-platform/tests/trusted-types/embed-src.tentative.html deleted file mode 100644 index 75760278fac4..000000000000 --- a/testing/web-platform/tests/trusted-types/embed-src.tentative.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/frame-src.tentative.html b/testing/web-platform/tests/trusted-types/frame-src.tentative.html deleted file mode 100644 index 31a1ce919c24..000000000000 --- a/testing/web-platform/tests/trusted-types/frame-src.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/input-src.tentative.html b/testing/web-platform/tests/trusted-types/input-src.tentative.html deleted file mode 100644 index 8cbd0ad41721..000000000000 --- a/testing/web-platform/tests/trusted-types/input-src.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/testing/web-platform/tests/trusted-types/script-src.tentative.html b/testing/web-platform/tests/trusted-types/script-src.tentative.html deleted file mode 100644 index 7235cc3bca65..000000000000 --- a/testing/web-platform/tests/trusted-types/script-src.tentative.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - diff --git a/testing/web-platform/tests/trusted-types/support/helper.sub.js b/testing/web-platform/tests/trusted-types/support/helper.sub.js index 036dbed7d159..91112d8f2390 100644 --- a/testing/web-platform/tests/trusted-types/support/helper.sub.js +++ b/testing/web-platform/tests/trusted-types/support/helper.sub.js @@ -45,3 +45,31 @@ function createFrameAndHref(href) { document.body.appendChild(i); }); } + +let trustedHTML = TrustedHTML.escape(STRINGS.unescapedHTML); +function assert_accepts_trusted_html(tag, attribute) { + let elem = document.createElement(tag); + elem[attribute] = trustedHTML; + assert_equals(elem[attribute] + "", STRINGS.unescapedHTML); +} + +let trustedURL = TrustedURL.create(URLS.safe); +function assert_accepts_trusted_url(tag, attribute) { + let elem = document.createElement(tag); + elem[attribute] = trustedURL; + assert_equals(elem[attribute] + "", URLS.safe); +} + +let trustedScriptURL = TrustedScriptURL.unsafelyCreate(URLS.safe); +function assert_accepts_trusted_script_url(tag, attribute) { + let elem = document.createElement(tag); + elem[attribute] = trustedScriptURL; + assert_equals(elem[attribute] + "", URLS.safe); +} + +function assert_throws_no_trusted_type(tag, attribute, value) { + let elem = document.createElement(tag); + assert_throws(new TypeError(), _ => { + elem[attribute] = value; + }); +} diff --git a/testing/web-platform/tests/trusted-types/track-src.tentative.html b/testing/web-platform/tests/trusted-types/track-src.tentative.html deleted file mode 100644 index cfe5374e41c5..000000000000 --- a/testing/web-platform/tests/trusted-types/track-src.tentative.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - -