test: update webstorage wpt

PR-URL: https://github.com/nodejs/node/pull/56963
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Reviewed-By: Jason Zhang <xzha4350@gmail.com>
This commit is contained in:
Yagiz Nizipli authored and Michaël Zasso committed 2025-02-11 08:46:55 +01:00
1 parent 9e60501f5e
commit 40cdf756e6
7 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ Last update:
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/3e3374efde/WebCryptoAPI
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
- webstorage: https://github.com/web-platform-tests/wpt/tree/9dafa89214/webstorage
- webstorage: https://github.com/web-platform-tests/wpt/tree/1291340aaa/webstorage
[Web Platform Tests]: https://github.com/web-platform-tests/wpt
[`git node wpt`]: https://github.com/nodejs/node-core-utils/blob/main/docs/git-node.md#git-node-wpt
+1 -1
View File
@@ -104,7 +104,7 @@
"path": "webmessaging/broadcastchannel"
},
"webstorage": {
"commit": "9dafa892146c4b5b1f604a39b3cf8677f8f70d44",
"commit": "1291340aaaa6e73db43b412e47401eca3830c556",
"path": "webstorage"
}
}
@@ -57,7 +57,7 @@ promise_test(async t => {
for (let id in ids) {
assert_true(id !== undefined, "id is not undefined");
}
// Note: we use assert_true, rather than assert_equals because we're
// Note: we use assert_true, rather than assert_equals becuase we're
// setting random numbers as IDs - this would mean expectations
// files wouldn't work as intended.
assert_true(crossSiteIframeAboutBlankID !== crossSiteIframeID,
@@ -38,7 +38,7 @@ async_test(t => {
assert_true(typeof sameSiteID === "string");
if (location.origin !== altOrigin) {
crossSiteWindow = window.open(`${altOrigin}/webstorage/localstorage-basic-partitioned.tentative.sub.html`, "", "noopener=false");
crossSiteWindow = window.open(`${altOrigin}/webstorage/localstorage-basic-partitioned.sub.html`, "", "noopener=false");
t.add_cleanup(() => crossSiteWindow.close());
}
}
@@ -47,7 +47,7 @@ async_test(t => {
// new cross-site window that contains our shared-iframe to repeat
// the process in a cross-site environment.
if (location.origin !== altOrigin) {
crossSiteWindow = window.open(`${altOrigin}/webstorage/sessionStorage-basic-partitioned.tentative.sub.html`, "", "noopener=false");
crossSiteWindow = window.open(`${altOrigin}/webstorage/sessionStorage-basic-partitioned.sub.html`, "", "noopener=false");
t.add_cleanup(() => crossSiteWindow.close());
}
}
+3
View File
@@ -8,6 +8,9 @@
"localstorage-cross-origin-iframe.tentative.https.window.js": {
"skip": "iframes are not supported in Node.js."
},
"localstorage-cross-origin-iframe.https.window.js": {
"skip": "iframes are not supported in Node.js."
},
"storage_local_window_open.window.js": {
"skip": "window.open() is not supported in Node.js."
},