From 5a7d2fd60ec4bd1639a1223ec5d2c54c534d0392 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 11 Jan 2016 15:00:56 -0800 Subject: [core] Eliminate platform::assetRoot() I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths. --- test/fixtures/api/assets.zip | Bin 328264 -> 167696 bytes test/fixtures/api/assets/streets.json | 14 ++++++++++++++ test/fixtures/api/assets/streets/0-0-0.vector.pbf | Bin 0 -> 482553 bytes test/fixtures/api/water.json | 2 +- 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/api/assets/streets.json create mode 100644 test/fixtures/api/assets/streets/0-0-0.vector.pbf (limited to 'test/fixtures/api') diff --git a/test/fixtures/api/assets.zip b/test/fixtures/api/assets.zip index 42a30f1c2a..fe00443f61 100644 Binary files a/test/fixtures/api/assets.zip and b/test/fixtures/api/assets.zip differ diff --git a/test/fixtures/api/assets/streets.json b/test/fixtures/api/assets/streets.json new file mode 100644 index 0000000000..f7b259f0a6 --- /dev/null +++ b/test/fixtures/api/assets/streets.json @@ -0,0 +1,14 @@ +{ + "bounds": [ -180, -85.0511, 180, 85.0511 ], + "center": [ 0, 0, 0 ], + "description": "", + "format": "pbf", + "id": "streets", + "maskLevel": 8, + "maxzoom": 15, + "minzoom": 0, + "name": "Streets", + "scheme": "xyz", + "tilejson": "2.0.0", + "tiles": [ "asset://streets/{z}-{x}-{y}.vector.pbf" ] +} diff --git a/test/fixtures/api/assets/streets/0-0-0.vector.pbf b/test/fixtures/api/assets/streets/0-0-0.vector.pbf new file mode 100644 index 0000000000..a0f049ad43 Binary files /dev/null and b/test/fixtures/api/assets/streets/0-0-0.vector.pbf differ diff --git a/test/fixtures/api/water.json b/test/fixtures/api/water.json index c969b345ae..387471b842 100644 --- a/test/fixtures/api/water.json +++ b/test/fixtures/api/water.json @@ -4,7 +4,7 @@ "sources": { "mapbox": { "type": "vector", - "url": "asset://TEST_DATA/fixtures/tiles/streets.json" + "url": "asset://streets.json" } }, "layers": [{ -- cgit v1.2.1