Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / crypto / exportKey-unextractable.html
index 5992088..903c5f6 100644 (file)
@@ -49,23 +49,19 @@ function importUnextractableRsaPrivateKey()
 importUnextractableAesKey().then(function(key) {
     return crypto.subtle.exportKey('raw', key);
 }).then(failAndFinishJSTest, function(result) {
-    error = result;
-    shouldBeNull("error");
+    logError(result);
 
     return importUnextractableHmacKey();
 }).then(function(key) {
     return crypto.subtle.exportKey('raw', key);
 }).then(failAndFinishJSTest, function(result) {
-    error = result;
-    shouldBeNull("error");
+    logError(result);
 
     return importUnextractableRsaPrivateKey();
 }).then(function(key) {
     return crypto.subtle.exportKey('pkcs8', key);
 }).then(failAndFinishJSTest, function(result) {
-    error = result;
-
-    shouldBeNull("error");
+    logError(result);
 }).then(finishJSTest, failAndFinishJSTest);
 
 </script>