Re: [WebCryptoAPI-tests] Add test for unwrapping a non-extractable key (#3954)

The tests I added are all for the case where we unwrap a key with JWK.ext=false and the extractable parameter also set to false.

We could also test that such unwrap calls fail when extractable is set to true.

The pre-existing tests cover the case where JWK.ext is set to true and where extractable is true. We could also test that unwrapKey with extractable = false still succeeds in this case.

We do not have tests for the case where JWK.ext is missing. The result should be the same as JWK.ext = true.

I didn't add any failure cases, though, since the test doesn't address any failires

View on GitHub: https://github.com/w3c/web-platform-tests/pull/3954#issuecomment-254263999

Received on Monday, 17 October 2016 16:47:17 UTC