Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/FilterEngine.cpp

Issue 10405034: Add a method to check whether ABP is fully initialised (Closed)
Patch Set: Created May 15, 2013, 2:55 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/FilterEngine.cpp
===================================================================
--- a/test/FilterEngine.cpp
+++ b/test/FilterEngine.cpp
@@ -160,3 +160,10 @@
AdblockPlus::FilterPtr match8 = filterEngine->Matches("http://example.org/fpbanner.gif", "IMAGE", "http://example.com/");
ASSERT_FALSE(match8);
}
+
+TEST_F(FilterEngineTest, IsInitialized)
+{
+ ASSERT_FALSE(filterEngine->IsInitialized());
+ jsEngine->Evaluate("require('filterNotifier').FilterNotifier.triggerListeners('load')");
+ ASSERT_TRUE(filterEngine->IsInitialized());
+}
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld