Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / crypto / aes-key-usages.html
index 2de5e36..3ed96f5 100644 (file)
@@ -38,8 +38,7 @@ function testEncrypt()
     return importKeyExcludingUsage("encrypt").then(function(key) {
         return crypto.subtle.encrypt({name: 'AES-CBC', iv: iv}, key, data);
     }).then(failAndFinishJSTest, function(result) {
-        error = result;
-        shouldBeNull("error");
+        logError(result);
     });
 }
 
@@ -48,8 +47,7 @@ function testDecrypt()
     return importKeyExcludingUsage("decrypt").then(function(key) {
         return crypto.subtle.decrypt({name: 'AES-CBC', iv: iv}, key, data);
     }).then(failAndFinishJSTest, function(result) {
-        error = result;
-        shouldBeNull("error");
+        logError(result);
     });
 }