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

Unified Diff: LayoutTests/crypto/digest-failures-expected.txt

Issue 222003006: [webcrypto] Don't throw any extra WebIDL exceptions from WebCrypto methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add missing expectation Created 6 years, 9 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/digest-failures-expected.txt
diff --git a/LayoutTests/crypto/digest-failures-expected.txt b/LayoutTests/crypto/digest-failures-expected.txt
index 7752ca2e9203eed632ef6f510389a86bd5c6e944..2f843976baed5b977b64f68e0e8847de21b1461b 100644
--- a/LayoutTests/crypto/digest-failures-expected.txt
+++ b/LayoutTests/crypto/digest-failures-expected.txt
@@ -1,3 +1,6 @@
+CONSOLE ERROR: Invalid dataBuffer argument
+CONSOLE ERROR: Invalid dataBuffer argument
+CONSOLE ERROR: Algorithm: Not an object
CONSOLE ERROR: Algorithm: Unrecognized algorithm name
CONSOLE ERROR: Algorithm: name: Missing or not a string
Tests incorrect calls to crypto.subtle.digest()
@@ -6,9 +9,9 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS crypto.subtle.digest({name: 'sha-1'}) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': 2 arguments required, but only 1 present..
-PASS crypto.subtle.digest({name: 'sha-1'}, null) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': Invalid dataBuffer argument.
-PASS crypto.subtle.digest({name: 'sha-1'}, 10) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': Invalid dataBuffer argument.
-PASS crypto.subtle.digest(null, data) threw exception TypeError: Failed to execute 'digest' on 'SubtleCrypto': Algorithm: Not an object.
+PASS error is null
+PASS error is null
+PASS error is null
PASS error is null
PASS error is null
PASS successfullyParsed is true

Powered by Google App Engine
This is Rietveld 408576698