From a093d01e6a9b3dd8974a6a6d26706ed73a9c6217 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 26 Oct 2014 01:23:22 +0000 Subject: some small changes to the script engine unit test and the documentation git-svn-id: file:///var/local/svn/basicwriter@80 daaaf23c-2e50-4459-9457-1e69db5a47bf --- test/plugins/genericjs/GenericJsScriptEngineTest.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/plugins/genericjs/GenericJsScriptEngineTest.hpp') diff --git a/test/plugins/genericjs/GenericJsScriptEngineTest.hpp b/test/plugins/genericjs/GenericJsScriptEngineTest.hpp index 8e3ffea..b7f95da 100644 --- a/test/plugins/genericjs/GenericJsScriptEngineTest.hpp +++ b/test/plugins/genericjs/GenericJsScriptEngineTest.hpp @@ -99,7 +99,7 @@ TEST(GENERIC_JS_TEST_NAME, returnObject) { GENERIC_JS_TEST_SCOPE Variant res = scope->run( - "var obj = {\"key1\": 42, \"key2\": \"Hello World\", \"key3\": false}; obj"); + "({\"key1\": 42, \"key2\": \"Hello World\", \"key3\": false})"); ASSERT_EQ(VariantType::map, res.getType()); std::map m = res.getMapValue(); -- cgit v1.2.3