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

Unified Diff: LayoutTests/crypto/resources/common.js

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/resources/common.js
diff --git a/LayoutTests/crypto/resources/common.js b/LayoutTests/crypto/resources/common.js
index ac1bf7dc767250dbe50fe22453bc4b7fd956201e..8169e9be66654a7a8200edeb3168499318d6b15b 100644
--- a/LayoutTests/crypto/resources/common.js
+++ b/LayoutTests/crypto/resources/common.js
@@ -1,11 +1,6 @@
-function shouldBeTypeError(toEval)
+function logError(error)
{
- var value = eval(toEval);
- if (value instanceof TypeError) {
- testPassed(toEval + " is: " + value.toString());
- } else {
- testFailed(toEval + " is not a TypeError: " + value);
- }
+ debug("error is: " + error.toString());
}
// Verifies that the given "bytes" holds the same value as "expectedHexString".

Powered by Google App Engine
This is Rietveld 408576698