Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / crypto / aes-kw-key-manipulation.html
index 69dcdf8..a435b27 100644 (file)
@@ -18,7 +18,7 @@ var extractable = true;
 debug("Generating a key...");
 crypto.subtle.generateKey({name: "aes-kw", length: 256}, extractable, ["wrapKey", "unwrapKey"]).then(function(result) {
     key = result;
-    shouldBe("key.toString()", "'[object Key]'");
+    shouldBe("key.toString()", "'[object CryptoKey]'");
     shouldBe("key.type", "'secret'");
     shouldBe("key.algorithm.name", "'AES-KW'");
     shouldBe("key.algorithm.length", "256");
@@ -40,7 +40,7 @@ crypto.subtle.generateKey({name: "aes-kw", length: 256}, extractable, ["wrapKey"
 }).then(function(result) {
     importedKey = result;
 
-    shouldBe("importedKey.toString()", "'[object Key]'");
+    shouldBe("importedKey.toString()", "'[object CryptoKey]'");
     shouldBe("importedKey.type", "'secret'");
     shouldBe("importedKey.algorithm.name", "'AES-KW'");
     shouldBe("importedKey.algorithm.length", "256");