Index: test/ConsoleJsObject.cpp |
=================================================================== |
--- a/test/ConsoleJsObject.cpp |
+++ b/test/ConsoleJsObject.cpp |
@@ -20,6 +20,14 @@ |
ASSERT_EQ("foo", errorCallback.lastMessage); |
} |
+TEST(ConsoleJsObjectTest, ErrorWithMultipleArguments) |
+{ |
+ MockErrorCallback errorCallback; |
+ AdblockPlus::JsEngine jsEngine(0, &errorCallback); |
+ jsEngine.Evaluate("console.error('foo', 'bar')"); |
+ ASSERT_EQ("foobar", errorCallback.lastMessage); |
+} |
+ |
TEST(ConsoleJsObjectTest, TraceDoesNothing) |
{ |
AdblockPlus::JsEngine jsEngine(0, 0); |