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

Unified Diff: extensions/renderer/api_invocation_errors_unittest.cc

Issue 2847853002: [Extensions Bindings] Add errors to signature parsing (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « extensions/renderer/api_invocation_errors.cc ('k') | extensions/renderer/api_signature.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_invocation_errors_unittest.cc
diff --git a/extensions/renderer/api_invocation_errors_unittest.cc b/extensions/renderer/api_invocation_errors_unittest.cc
index 2149cc56ced1d96a548618b785cf6033a6ab2cb9..b6b9f189a1bc60b019838738eaa4ea63ddfd390e 100644
--- a/extensions/renderer/api_invocation_errors_unittest.cc
+++ b/extensions/renderer/api_invocation_errors_unittest.cc
@@ -22,6 +22,15 @@ TEST(APIInvocationErrors, ChainedErrors) {
"Invalid type: expected string, found integer.",
PropertyError("foo",
IndexError(1, InvalidType(kTypeString, kTypeInteger))));
+
+ EXPECT_EQ(
+ "Error at parameter 'foo': Invalid type: expected string, found integer.",
+ ArgumentError("foo", InvalidType(kTypeString, kTypeInteger)));
+ EXPECT_EQ(
+ "Error at parameter 'foo': Error at index 0: "
+ "Invalid type: expected string, found integer.",
+ ArgumentError("foo",
+ IndexError(0, InvalidType(kTypeString, kTypeInteger))));
}
} // namespace api_errors
« no previous file with comments | « extensions/renderer/api_invocation_errors.cc ('k') | extensions/renderer/api_signature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698