Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 15 matching lines...) Expand all Loading... | |
26 | 26 |
27 @Override | 27 @Override |
28 protected void setUp() throws Exception | 28 protected void setUp() throws Exception |
29 { | 29 { |
30 super.setUp(); | 30 super.setUp(); |
31 | 31 |
32 jsEngine.setWebRequest(new LazyWebRequest()); | 32 jsEngine.setWebRequest(new LazyWebRequest()); |
33 jsEngine.setDefaultLogSystem(); | 33 jsEngine.setDefaultLogSystem(); |
34 | 34 |
35 filterEngine = new FilterEngine(jsEngine); | 35 filterEngine = new FilterEngine(jsEngine); |
36 | |
37 // JsEngine has built-in default subscriptions | |
38 while (filterEngine.getListedSubscriptions().size() > 0) | |
sergei
2016/07/07 12:48:42
It seems there is a race condition because the num
anton
2016/07/07 13:33:54
ok, since it's not good enough solution for the ca
| |
39 filterEngine.getListedSubscriptions().get(0).removeFromList(); | |
40 | |
41 Thread.sleep(100); | |
36 } | 42 } |
37 } | 43 } |
OLD | NEW |