Skip to content

Commit 4e91849

Browse files
committed
Bug 1978866 [wpt PR 53925] - Add tests for required requests field in Digital Credentials API get() and create() requests, a=testonly
Automatic update from web-platform-tests Add test for required `requests` field (#53925) -- wpt-commits: 19f584f069175b76951bceb68258418001b20073 wpt-pr: 53925 UltraBlame original commit: e541eea7769dce383446ce9f024b3ba4e122bf14
1 parent ac5c6b8 commit 4e91849

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,49 @@
15371537
"
15381538
)
15391539
;
1540+
promise_test
1541+
(
1542+
async
1543+
(
1544+
t
1545+
)
1546+
=
1547+
>
1548+
{
1549+
await
1550+
promise_rejects_js
1551+
(
1552+
t
1553+
TypeError
1554+
navigator
1555+
.
1556+
credentials
1557+
.
1558+
create
1559+
(
1560+
{
1561+
digital
1562+
:
1563+
{
1564+
}
1565+
}
1566+
)
1567+
)
1568+
;
1569+
}
1570+
"
1571+
requests
1572+
field
1573+
is
1574+
required
1575+
in
1576+
the
1577+
options
1578+
object
1579+
.
1580+
"
1581+
)
1582+
;
15401583
<
15411584
/
15421585
script

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,49 @@
16651665
"
16661666
)
16671667
;
1668+
promise_test
1669+
(
1670+
async
1671+
(
1672+
t
1673+
)
1674+
=
1675+
>
1676+
{
1677+
await
1678+
promise_rejects_js
1679+
(
1680+
t
1681+
TypeError
1682+
navigator
1683+
.
1684+
credentials
1685+
.
1686+
get
1687+
(
1688+
{
1689+
digital
1690+
:
1691+
{
1692+
}
1693+
}
1694+
)
1695+
)
1696+
;
1697+
}
1698+
"
1699+
requests
1700+
field
1701+
is
1702+
required
1703+
in
1704+
the
1705+
options
1706+
object
1707+
.
1708+
"
1709+
)
1710+
;
16681711
<
16691712
/
16701713
script

0 commit comments

Comments
 (0)