Skip to content

Commit c22cabc

Browse files
committed
Bug 1979365 [wpt PR 53980] - Fix Digital Credentials .get() tests that test the absence of requests, a=testonly
Automatic update from web-platform-tests avoid using makeGetOptions() (#53980) -- wpt-commits: f2c14c0c92aae89767b3e6c43c6a781090a8a344 wpt-pr: 53980 UltraBlame original commit: 2c38c33f1b3f41f0dcefb3dde5b3446ca277dbdb
1 parent 37ce917 commit c22cabc

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

testing/web-platform/tests/digital-credentials/get.tentative.https.html

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,12 @@
107107
}, "Calling navigator.credentials.get() without a digital member same origin.");
108108

109109
promise_test(async (t) => {
110-
for (const request of [undefined, []]) {
111-
const options = makeGetOptions(request);
110+
for (const r of [undefined, []]) {
111+
const options = {
112+
digital: {
113+
requests: r
114+
},
115+
};
112116
await test_driver.bless("user activation");
113117
await promise_rejects_js(
114118
t,
@@ -121,8 +125,12 @@
121125
promise_test(async (t) => {
122126
iframeSameOrigin.focus();
123127
const { contentWindow: iframeWindow } = iframeSameOrigin;
124-
for (const request of [undefined, []]) {
125-
const options = makeGetOptions(request);
128+
for (const r of [undefined, []]) {
129+
const options = {
130+
digital: {
131+
requests: r
132+
},
133+
};
126134
await test_driver.bless("user activation");
127135
await promise_rejects_js(
128136
t,
@@ -134,8 +142,12 @@
134142

135143
promise_test(async (t) => {
136144
iframeCrossOrigin.focus();
137-
for (const request of [undefined, []]) {
138-
const options = makeGetOptions(request);
145+
for (const r of [undefined, []]) {
146+
const options = {
147+
digital: {
148+
requests: r
149+
},
150+
};
139151
const result = await sendMessage(iframeCrossOrigin, {
140152
action: "get",
141153
options,

0 commit comments

Comments
 (0)