Skip to content

Commit 10e8fb6

Browse files
committed
Bug 1665262 [wpt PR 25560] - Replace allowpaymentrequest attr with allow=payment, a=testonly
Automatic update from web-platform-tests Replace allowpaymentrequest attr with allow=payment (#25560) Tests for w3c/payment-request#928 -- wpt-commits: aa0d5711933473ebd2c10d169edb259f08d1136b wpt-pr: 25560 UltraBlame original commit: 4afcc2d6ffce639a37e26154f4441750d65cb678
1 parent 1b9f288 commit 10e8fb6

15 files changed

+182
-55
lines changed

testing/web-platform/tests/lint.ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ payment
21832183
-
21842184
request
21852185
/
2186-
allowpaymentrequest
2186+
allowpayment
21872187
/
21882188
setting
21892189
-
Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
lt
1212
;
1313
iframe
14-
allowpaymentrequest
14+
allow
15+
=
16+
"
17+
payment
18+
"
1519
>
1620
in
1721
non
@@ -79,7 +83,11 @@
7983
"
8084
iframe
8185
"
82-
allowpaymentrequest
86+
allow
87+
=
88+
"
89+
payment
90+
"
8391
>
8492
<
8593
/
@@ -166,7 +174,14 @@
166174
]
167175
;
168176
const
169-
grabbedPaymentRequest
177+
domException
178+
=
179+
win
180+
.
181+
DOMException
182+
;
183+
const
184+
prConstructor
170185
=
171186
win
172187
.
@@ -219,18 +234,16 @@
219234
=
220235
>
221236
{
222-
assert_throws_dom
223-
(
224-
'
225-
SecurityError
226-
'
237+
const
238+
func
239+
=
227240
(
228241
)
229242
=
230243
>
231244
{
232245
new
233-
grabbedPaymentRequest
246+
prConstructor
234247
(
235248
.
236249
.
@@ -239,6 +252,13 @@
239252
)
240253
;
241254
}
255+
assert_throws_dom
256+
(
257+
'
258+
SecurityError
259+
'
260+
domException
261+
func
242262
)
243263
;
244264
}
Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
lt
1212
;
1313
iframe
14-
allowpaymentrequest
14+
allow
15+
=
16+
"
17+
payment
18+
"
1519
>
1620
in
1721
non
@@ -64,7 +68,11 @@
6468
"
6569
iframe
6670
"
67-
allowpaymentrequest
71+
allow
72+
=
73+
"
74+
payment
75+
"
6876
>
6977
<
7078
/
@@ -151,7 +159,14 @@
151159
]
152160
;
153161
const
154-
grabbedPaymentRequest
162+
domException
163+
=
164+
win
165+
.
166+
DOMException
167+
;
168+
const
169+
prConstructor
155170
=
156171
win
157172
.
@@ -190,13 +205,14 @@
190205
'
191206
SecurityError
192207
'
208+
domException
193209
(
194210
)
195211
=
196212
>
197213
{
198214
new
199-
grabbedPaymentRequest
215+
prConstructor
200216
(
201217
.
202218
.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
title
88
>
99
PaymentRequest
10-
allowpaymentrequest
10+
allow
11+
=
12+
"
13+
payment
14+
"
1115
attribute
1216
cross
1317
-
@@ -89,7 +93,7 @@
8993
}
9094
;
9195
const
92-
setAllowPaymentRequest
96+
setAllowPayment
9397
=
9498
true
9599
;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
}
8989
;
9090
const
91-
setAllowPaymentRequest
91+
setAllowPayment
9292
=
9393
true
9494
;

testing/web-platform/tests/payment-request/allowpaymentrequest/basic.https.html renamed to testing/web-platform/tests/payment-request/allowpayment/basic.https.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
"
5656
iframe
5757
"
58-
allowpaymentrequest
58+
allow
59+
=
60+
"
61+
payment
62+
"
5963
>
6064
<
6165
/

testing/web-platform/tests/payment-request/allowpaymentrequest/common.sub.js renamed to testing/web-platform/tests/payment-request/allowpayment/common.sub.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bool
3636
/
3737
/
3838
const
39-
setAllowPaymentRequest
39+
setAllowPayment
4040
=
4141
bool
4242
;
@@ -274,17 +274,18 @@ tagName
274274
;
275275
if
276276
(
277-
setAllowPaymentRequest
277+
setAllowPayment
278278
)
279279
{
280280
elm
281281
.
282282
setAttribute
283283
(
284284
"
285-
allowpaymentrequest
285+
allow
286286
"
287287
"
288+
payment
288289
"
289290
)
290291
;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
}
9090
;
9191
const
92-
setAllowPaymentRequest
92+
setAllowPayment
9393
=
9494
false
9595
;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
}
8989
;
9090
const
91-
setAllowPaymentRequest
91+
setAllowPayment
9292
=
9393
false
9494
;
Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
>
99
PaymentRequest
1010
removing
11-
allowpaymentrequest
11+
allow
12+
=
13+
"
14+
payment
15+
"
1216
after
1317
load
1418
and
@@ -85,9 +89,11 @@
8589
;
8690
iframe
8791
.
88-
allowPaymentRequest
92+
allow
8993
=
90-
true
94+
"
95+
payment
96+
"
9197
;
9298
let
9399
i
@@ -199,34 +205,41 @@
199205
/
200206
/
201207
The
202-
allowpaymentrequest
203-
flag
208+
allow
209+
=
210+
"
211+
payment
212+
"
204213
is
205214
set
206215
.
207216
iframe
208217
.
209-
allowPaymentRequest
218+
allow
210219
=
211-
false
220+
"
221+
"
212222
;
213223
/
214224
/
215225
3
216226
.
217227
The
218-
allowpaymentrequest
228+
allow
219229
attribute
220230
has
221231
now
222232
been
223-
removed
233+
cleared
224234
.
225235
/
226236
/
227237
The
228-
allowpaymentrequest
229-
flag
238+
allow
239+
=
240+
"
241+
payment
242+
"
230243
is
231244
*
232245
still
@@ -390,8 +403,11 @@
390403
/
391404
Since
392405
the
393-
allowpaymentrequest
394-
flag
406+
allow
407+
=
408+
"
409+
payment
410+
"
395411
was
396412
set
397413
we
@@ -446,7 +462,7 @@
446462
not
447463
have
448464
an
449-
allowpaymentrequest
465+
allow
450466
attribute
451467
.
452468
/
@@ -634,8 +650,11 @@
634650
*
635651
set
636652
the
637-
allowpaymentrequest
638-
flag
653+
allow
654+
=
655+
"
656+
payment
657+
"
639658
.
640659
iframe
641660
.
@@ -677,8 +696,11 @@
677696
/
678697
Since
679698
the
680-
allowpaymentrequest
681-
flag
699+
allow
700+
=
701+
"
702+
payment
703+
"
682704
was
683705
not
684706
set
@@ -891,8 +913,11 @@
891913
3
892914
sets
893915
the
894-
allowpaymentrequest
895-
flag
916+
allow
917+
=
918+
"
919+
payment
920+
"
896921
.
897922
document
898923
.

0 commit comments

Comments
 (0)