mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 81962ac8802223d038b188b6f9cb88a0a9c5beee
This commit is contained in:
parent
fe1a057bd1
commit
24183668c4
1960 changed files with 29853 additions and 10555 deletions
|
@ -30,13 +30,13 @@ test(() => {
|
|||
|
||||
test(() => {
|
||||
const ev = new CanMakePaymentEvent('test', {
|
||||
topLevelOrigin: 'https://foo.com',
|
||||
topOrigin: 'https://foo.com',
|
||||
paymentRequestOrigin: 'https://bar.com',
|
||||
methodData: [],
|
||||
modifiers: [],
|
||||
});
|
||||
assert_false(ev.isTrusted, 'constructed in script, so not be trusted');
|
||||
assert_equals(ev.topLevelOrigin, 'https://foo.com');
|
||||
assert_equals(ev.topOrigin, 'https://foo.com');
|
||||
assert_equals(ev.paymentRequestOrigin, 'https://bar.com');
|
||||
}, 'CanMakePaymentEvent can be constructed with a CanMakePaymentEventInit, even if not trusted');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue