blob: ef3531ba606491017d9b511d2f2142b00b1dad23 [file] [log] [blame]
jiewen_tan@apple.com83b63012016-11-18 21:31:42 +00001Test encrypting using RSA-OAEP with malformed parameters
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: true}, key, plainText) rejected promise with TypeError: Type error.
7PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: 1}, key, plainText) rejected promise with TypeError: Type error.
8PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: null}, key, plainText) rejected promise with TypeError: Type error.
9PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: Symbol()}, key, plainText) rejected promise with TypeError: Type error.
10PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: { }}, key, plainText) rejected promise with TypeError: Type error.
11PASS crypto.subtle.encrypt({name: "RSA-OAEP", label: "foo"}, key, plainText) rejected promise with TypeError: Type error.
12PASS successfullyParsed is true
13
14TEST COMPLETE
15