diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-08-01 11:29:16 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-08-01 11:29:16 +0200 |
commit | 995aa163234be3cb40c81b307bc4f47b990a35e3 (patch) | |
tree | 658f8b707641b23837c10c7145ba41205377f3e6 /test/map/map.test.cpp | |
parent | 54ca0c357bf522cb01fa3ee2f1131aac9b9c0cc0 (diff) | |
download | qtlocation-mapboxgl-upstream/make-stale-resources-renderable.tar.gz |
Diffstat (limited to 'test/map/map.test.cpp')
-rw-r--r-- | test/map/map.test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 6c2ac7b0d7..f8ca896ab3 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -152,7 +152,7 @@ TEST(Map, Offline) { test.fileSource.put(Resource::spriteImage(prefix + "sprite", 1.0), expiredItem("sprite.png")); test.fileSource.put(Resource::tile(prefix + "{z}-{x}-{y}.vector.pbf", 1.0, 0, 0, 0, Tileset::Scheme::XYZ), expiredItem("0-0-0.vector.pbf")); test.fileSource.put(Resource::glyphs(prefix + "{fontstack}/{range}.pbf", {{"Helvetica"}}, {0, 255}), expiredItem("glyph.pbf")); - NetworkStatus::Set(NetworkStatus::Status::Offline); + test.fileSource.setOnlineStatus(false); test.map.getStyle().loadURL(prefix + "style.json"); @@ -160,8 +160,6 @@ TEST(Map, Offline) { test::render(test.map, test.view), 0.0015, 0.1); - - NetworkStatus::Set(NetworkStatus::Status::Online); } TEST(Map, SetStyleInvalidJSON) { |