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

Unified Diff: LayoutTests/crypto/aes-key-algorithm-mismatch.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/aes-key-algorithm-mismatch.html
diff --git a/LayoutTests/crypto/aes-key-algorithm-mismatch.html b/LayoutTests/crypto/aes-key-algorithm-mismatch.html
index 9d97be3c1f1b0cac349a5e49617c9a8269fbc064..01d7bdf26f5998c0a264286dd31de1a4afa178c4 100644
--- a/LayoutTests/crypto/aes-key-algorithm-mismatch.html
+++ b/LayoutTests/crypto/aes-key-algorithm-mismatch.html
@@ -30,8 +30,7 @@ Promise.resolve(null).then(function(result) {
// Can't use an AES-KW key for AES-CBC (even though both are AES keys).
return crypto.subtle.encrypt({name: 'AES-CBC', iv: new Uint8Array(16)}, key, data);
}).then(failAndFinishJSTest, function(result) {
- error = result;
- shouldBeNull("error");
+ logError(result);
}).then(finishJSTest, failAndFinishJSTest);
</script>

Powered by Google App Engine
This is Rietveld 408576698