aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/connector/gc
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-12-11 23:57:11 +0100
committerrsudev <rasch@munin-soft.de>2012-12-12 07:25:19 +0100
commitc34cb7fd9a17e98b8c8a4c83ab878d11c9e7e9bc (patch)
treedc1d535d1521660d6813835155752838cc311bf1 /tests/src/cgeo/geocaching/connector/gc
parent9f40325bc9f9effa3f90904384167eefebca3c34 (diff)
downloadcgeo-c34cb7fd9a17e98b8c8a4c83ab878d11c9e7e9bc.zip
cgeo-c34cb7fd9a17e98b8c8a4c83ab878d11c9e7e9bc.tar.gz
cgeo-c34cb7fd9a17e98b8c8a4c83ab878d11c9e7e9bc.tar.bz2
Fixes due to GC.com update. Fixes #2241 #2242 # 2243 #2244
Diffstat (limited to 'tests/src/cgeo/geocaching/connector/gc')
-rw-r--r--tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
index 688fde3..1f4f074 100644
--- a/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
+++ b/tests/src/cgeo/geocaching/connector/gc/GCConstantsTest.java
@@ -20,14 +20,9 @@ public class GCConstantsTest extends AndroidTestCase {
}
public static void testCacheCount() {
- assertCacheCount(149, "<strong><img src=\"/images/icons/icon_smile.png\" title=\"Caches Found\" /> 149</strong>");
- assertCacheCount(692, MockedCache.readCachePage("GC2CJPF")); // # of caches found by blafoo at the point of time creating the mocked data
- assertCacheCount(1510, "<strong><img src=\"/images/icons/icon_smile.png\" title=\"Caches Found\" /> 1,510&nbsp;&middot;&nbsp;<img src=\"/images/challenges/types/sm/challenge.png\" title=\"Challenges Completed\" /> 2</strong>");
- assertCacheCount(67, "<strong><img title=\"Caches Found\" src=\"/images/icons/icon_smile.png\"/> 67</strong>");
- assertCacheCount(1067, "<strong><img title=\"Caches Found\" src=\"/images/icons/icon_smile.png\"/> 1,067</strong>");
- // now checking usage of "." as thousands separator
- assertCacheCount(1510, "<strong><img src=\"/images/icons/icon_smile.png\" title=\"Caches Found\" /> 1.510&nbsp;&middot;&nbsp;<img src=\"/images/challenges/types/sm/challenge.png\" title=\"Challenges Completed\" /> 2</strong>");
- assertCacheCount(1067, "<strong><img title=\"Caches Found\" src=\"/images/icons/icon_smile.png\"/> 1.067</strong>");
+ assertCacheCount(1510, "<strong style=\"display:block\"> 1.510 Caches Found</strong>");
+ assertCacheCount(1510, "<strong style=\"display:block\"> 1,510 Caches Found</strong>");
+ assertCacheCount(725, MockedCache.readCachePage("GC2CJPF")); // # of caches found by blafoo at the point of time creating the mocked data
}
private static void assertCacheCount(final int count, final String html) {