Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: LayoutTests/crypto/exportKey-unextractable.html

Issue 243853004: [webcrypto] Reject failed operations with a DOMException rather than null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/crypto/exportKey-unextractable.html
diff --git a/LayoutTests/crypto/exportKey-unextractable.html b/LayoutTests/crypto/exportKey-unextractable.html
index 5992088ac90707acbe8dfd47c7902901c60aa7c3..903c5f65772475b5b75b43da5c462b260e0220fd 100644
--- a/LayoutTests/crypto/exportKey-unextractable.html
+++ b/LayoutTests/crypto/exportKey-unextractable.html
@@ -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>
« no previous file with comments | « LayoutTests/crypto/exportKey-badParameters-expected.txt ('k') | LayoutTests/crypto/exportKey-unextractable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698