-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1920591 [wpt PR 48243] - Implement failure tests cases for the EC…
… import operation, a=testonly Automatic update from web-platform-tests Implement failure tests cases for the EC import operation (#48243) This PR implements new tests for the import operation of the ECDH and ECDSA algorithms, defining failure test cases. Additionally, it applies some refactoring to the code already used for OKP keys. -- wpt-commits: 4f0be15407bc43827edcdda8bc1b30a3875c9447 wpt-pr: 48243 UltraBlame original commit: 9e32edbd57000e0dc68fe67615e254f8a98b569a
- Loading branch information
Showing
9 changed files
with
6,365 additions
and
2,869 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
...ing/web-platform/tests/WebCryptoAPI/import_export/ec_importKey_failures_ECDH.https.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/ | ||
/ | ||
META | ||
: | ||
title | ||
= | ||
WebCryptoAPI | ||
: | ||
importKey | ||
( | ||
) | ||
for | ||
Failures | ||
/ | ||
/ | ||
META | ||
: | ||
timeout | ||
= | ||
long | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
. | ||
. | ||
/ | ||
util | ||
/ | ||
helpers | ||
. | ||
js | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
ec_importKey_failures_fixtures | ||
. | ||
js | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
importKey_failures | ||
. | ||
js | ||
/ | ||
/ | ||
Setup | ||
: | ||
define | ||
the | ||
correct | ||
behaviors | ||
that | ||
should | ||
be | ||
sought | ||
and | ||
create | ||
/ | ||
/ | ||
helper | ||
functions | ||
that | ||
generate | ||
all | ||
possible | ||
test | ||
parameters | ||
for | ||
/ | ||
/ | ||
different | ||
situations | ||
. | ||
run_test | ||
( | ||
[ | ||
" | ||
ECDH | ||
" | ||
] | ||
) | ||
; |
91 changes: 91 additions & 0 deletions
91
...ng/web-platform/tests/WebCryptoAPI/import_export/ec_importKey_failures_ECDSA.https.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
/ | ||
/ | ||
META | ||
: | ||
title | ||
= | ||
WebCryptoAPI | ||
: | ||
importKey | ||
( | ||
) | ||
for | ||
Failures | ||
/ | ||
/ | ||
META | ||
: | ||
timeout | ||
= | ||
long | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
. | ||
. | ||
/ | ||
util | ||
/ | ||
helpers | ||
. | ||
js | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
ec_importKey_failures_fixtures | ||
. | ||
js | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
importKey_failures | ||
. | ||
js | ||
/ | ||
/ | ||
Setup | ||
: | ||
define | ||
the | ||
correct | ||
behaviors | ||
that | ||
should | ||
be | ||
sought | ||
and | ||
create | ||
/ | ||
/ | ||
helper | ||
functions | ||
that | ||
generate | ||
all | ||
possible | ||
test | ||
parameters | ||
for | ||
/ | ||
/ | ||
different | ||
situations | ||
. | ||
run_test | ||
( | ||
[ | ||
" | ||
ECDSA | ||
" | ||
] | ||
) | ||
; |
Oops, something went wrong.