Index: test/JsEngine.cpp |
=================================================================== |
--- a/test/JsEngine.cpp |
+++ b/test/JsEngine.cpp |
@@ -168,20 +168,16 @@ |
ASSERT_TRUE(jsEngine->GetLogSystem()); |
ASSERT_ANY_THROW(jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr())); |
AdblockPlus::LogSystemPtr logSystem(new AdblockPlus::DefaultLogSystem()); |
jsEngine->SetLogSystem(logSystem); |
ASSERT_EQ(logSystem, jsEngine->GetLogSystem()); |
ASSERT_TRUE(jsEngine->GetFileSystem()); |
- ASSERT_ANY_THROW(jsEngine->SetFileSystem(AdblockPlus::FileSystemPtr())); |
- AdblockPlus::FileSystemPtr fileSystem(new AdblockPlus::DefaultFileSystem()); |
- jsEngine->SetFileSystem(fileSystem); |
- ASSERT_EQ(fileSystem, jsEngine->GetFileSystem()); |
} |
TEST(NewJsEngineTest, GlobalPropertyTest) |
{ |
AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New()); |
jsEngine->SetGlobalProperty("foo", jsEngine->NewValue("bar")); |
auto foo = jsEngine->Evaluate("foo"); |
ASSERT_TRUE(foo.IsString()); |