Skip to content

Commit

Permalink
Bug 1920591 [wpt PR 48243] - Implement failure tests cases for the EC…
Browse files Browse the repository at this point in the history
… 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
marco-c committed Sep 26, 2024
1 parent cff2b15 commit 2fedfe0
Show file tree
Hide file tree
Showing 9 changed files with 6,365 additions and 2,869 deletions.
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
"
]
)
;
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
"
]
)
;
Loading

0 comments on commit 2fedfe0

Please sign in to comment.