+Promise.resolve(null).then(function(result) {
+ // null is not a valid Key.
+ return crypto.subtle.exportKey('raw', null);
+}).then(failAndFinishJSTest, function(result) {
+ logError(result);
+
+ // 3 is not a valid Key.
+ return crypto.subtle.exportKey('raw', 3);
+}).then(failAndFinishJSTest, function(result) {
+ logError(result);
+
+ return importAesKey();
+}).then(function(result) {