OLD | NEW |
(Empty) | |
| 1 #include <AdblockPlus.h> |
| 2 #include <gtest/gtest.h> |
| 3 |
| 4 TEST(AppInfoJsObjectTest, AllProperties) |
| 5 { |
| 6 AdblockPlus::AppInfo appInfo; |
| 7 appInfo.id = "1"; |
| 8 appInfo.version = "2"; |
| 9 appInfo.name = "4"; |
| 10 appInfo.platform = "5"; |
| 11 AdblockPlus::JsEngine jsEngine(appInfo, 0, 0, 0); |
| 12 ASSERT_EQ("1", jsEngine.Evaluate("_appInfo.id")->AsString()); |
| 13 ASSERT_EQ("2", jsEngine.Evaluate("_appInfo.version")->AsString()); |
| 14 ASSERT_EQ("4", jsEngine.Evaluate("_appInfo.name")->AsString()); |
| 15 ASSERT_EQ("5", jsEngine.Evaluate("_appInfo.platform")->AsString()); |
| 16 } |
OLD | NEW |