Index: test/JsEngine.cpp |
=================================================================== |
--- a/test/JsEngine.cpp |
+++ b/test/JsEngine.cpp |
@@ -123,14 +123,14 @@ |
AdblockPlus::WebRequestPtr webRequest(new AdblockPlus::DefaultWebRequest()); |
jsEngine->SetWebRequest(webRequest); |
ASSERT_EQ(webRequest, jsEngine->GetWebRequest()); |
} |
TEST(NewJsEngineTest, GlobalPropertyTest) |
{ |
AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New()); |
- jsEngine->SetGlobalProperty("foo", jsEngine->NewValue("bar")); |
+ jsEngine->SetGlobalProperty("foo", *jsEngine->NewValue("bar")); |
AdblockPlus::JsValuePtr foo = jsEngine->Evaluate("foo"); |
ASSERT_TRUE(foo->IsString()); |
ASSERT_EQ(foo->AsString(), "bar"); |
} |