Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java |
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java |
index 40d1a24c4e9e12b22c3aeb58a9a515a2b00c482c..644be3cee52ae24266cae27d8df2570def4ea14a 100644 |
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java |
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java |
@@ -17,6 +17,7 @@ |
package org.adblockplus.libadblockplus.tests; |
+import android.os.SystemClock; |
import android.util.Log; |
import org.adblockplus.libadblockplus.Filter; |
import org.adblockplus.libadblockplus.FilterEngine; |
@@ -331,6 +332,12 @@ public class FilterEngineTest extends FilterEngineGenericTest |
@Test |
public void testSetRemoveFilterChangeCallback() |
{ |
+ // avoid callback with action "load" |
+ while (filterEngine.getListedFilters().size() > 0) |
+ { |
+ filterEngine.getListedFilters().get(0).removeFromList(); |
+ } |
+ |
MockFilterChangeCallback mockFilterChangeCallback = new MockFilterChangeCallback(0); |
filterEngine.setFilterChangeCallback(mockFilterChangeCallback); |