File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
testing/web-platform/tests/digital-credentials Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 107
107
} , "Calling navigator.credentials.get() without a digital member same origin." ) ;
108
108
109
109
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
+ } ;
112
116
await test_driver . bless ( "user activation" ) ;
113
117
await promise_rejects_js (
114
118
t ,
121
125
promise_test ( async ( t ) => {
122
126
iframeSameOrigin . focus ( ) ;
123
127
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
+ } ;
126
134
await test_driver . bless ( "user activation" ) ;
127
135
await promise_rejects_js (
128
136
t ,
134
142
135
143
promise_test ( async ( t ) => {
136
144
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
+ } ;
139
151
const result = await sendMessage ( iframeCrossOrigin , {
140
152
action : "get" ,
141
153
options,
You can’t perform that action at this time.
0 commit comments