John Firebaugh
b60b6c47c0
[core] Merge SQLiteCache into the platform library
...
OfflineFileSource will depend on SQLite too.
2015-12-22 12:09:14 -08:00
Bruno de Oliveira Abinader
9d3fe01991
[core] Tests for style with unused sources
2015-12-17 16:53:37 -08:00
John Firebaugh
bde07c8f0e
[core] Custom layers
2015-12-09 13:51:28 -08:00
John Firebaugh
e04c5f6506
[core] Replace StyleLayerType with RTTI
2015-12-07 18:22:33 -08:00
John Firebaugh
0a0007e0ac
[core] More efficient layer cloning
2015-12-07 11:19:08 -08:00
Thiago Marcos P. Santos
3d07aaf95d
[core] Don't link with libuv on components not using it directly
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
8d3fd199b2
[tests] Add utests for ThreadLocal
2015-12-01 11:49:02 +02:00
Thiago Marcos P. Santos
ff47838474
[tests] Add utests for Timer
2015-12-01 11:49:01 +02:00
Thiago Marcos P. Santos
6762cd0ca9
[tests] Add utests for AsyncTask
2015-12-01 00:00:09 +02:00
John Firebaugh
ed5eb9edc1
[test] Add pixelmatch; use in annotation tests
2015-11-25 15:57:37 -08:00
John Firebaugh
54eff4b4c1
[core] Add image tests
2015-11-25 15:57:36 -08:00
Konstantin Käfer
b5f7cafab4
[core] more robust max-age parsing
2015-11-20 14:39:44 +01:00
Minh Nguyễn
a983dc8259
Ported replaceTokens() tests from GL JS
2015-11-18 19:06:33 -08:00
John Firebaugh
f2772309fe
Rewrite CustomSpriteImages test
...
Previous test was invalid; Map::setSprite is only for annotations.
2015-11-18 16:29:18 -08:00
John Firebaugh
f9ebe54a63
[core] Merge Sprite into SpriteStore
2015-11-12 13:03:14 -08:00
John Firebaugh
1e350b7ea4
[core] Reorganize sprite related files
2015-11-12 13:03:14 -08:00
Mike Morris
dfb36d6231
[core] move mbgl.gyp to gyp directory
...
So npm won't clobber binding.gyp, refs
https://github.com/npm/npm/issues/10243
2015-11-04 11:34:35 -05:00
Mike Morris
79a5a96037
[core] mason geojsonvt-2.1.6.3
...
- [osx] set -fvisibility-inlines-hidden in gyp/common.gypi to silence
mismatched visibility linker warnings
- [linux] set cxx_host in GYP_FLAGS to set -fabi-version=0 on gcc builds
to use clang-built mason binaries
- [ios] update symbol visibility for iOS tests
- [ios] link libgeojsonvt.a in iOS tests xcodeproj
- add libgeojsonvt.a to General -> Linked Frameworks and Libraries
- add mason_packages (recursive) to Build Settings -> Library Search Path
- [ios] add libuv and geojsonvt first in iOS libtool smush to ensure symbols
are found by later compilation units where they are undefined
2015-11-02 18:41:34 -05:00
Konstantin Käfer
32c0fb468f
[http] don't retry when there's already a request in progress
2015-10-27 12:11:16 +01:00
Konstantin Käfer
9bbd9aba3a
[core] set a timer and auto-refresh requests when they expire
...
When we get a request with an explicit expiration time, we're now starting a timer, and will trigger a refresh once the data expires. This gives requesters a chance to update their data.
2015-10-26 15:54:27 +01:00
John Firebaugh
ddc4a8193e
Install gtest from mason
2015-10-02 10:17:16 -07:00
John Firebaugh
2066295e35
Install RapidJSON from mason
2015-10-01 11:40:47 -07:00
Mike Morris
b46c102eb0
mason variant@1.0
2015-09-30 15:34:40 -07:00
John Firebaugh
15a66b8989
Consolidate test-suite rendering harnesses ( #2236 )
2015-09-04 10:52:14 -07:00
Konstantin Käfer
e6053aa547
Make build system architecture agnostic to remove Android special case
2015-08-04 14:08:58 +02:00
Thiago Marcos P. Santos
cd2c1200c8
Add GlyphStore unit tests
2015-07-16 19:38:39 +03:00
Thiago Marcos P. Santos
7d4349e308
Added unit tests for the WorkQueue
2015-07-16 19:38:38 +03:00
Thiago Marcos P. Santos
30416c5a98
Add unit tests for addPointAnnotations()
...
This test would have caught #1874
2015-07-10 21:03:47 +03:00
Thiago Marcos P. Santos
0d44402628
Move MockFileSource to fixtures
...
It is going to be used by another test that needs to emulate
asynchronous requests.
2015-07-10 21:03:23 +03:00
Thiago Marcos P. Santos
a666c08274
Add unit tests for the Sprite class
2015-07-10 15:35:26 +03:00
Konstantin Käfer
1f4b5e7736
add custom imagery visual test
2015-07-08 19:46:03 +02:00
Konstantin Käfer
a57f3ddceb
add basic SpriteAtlas test
2015-07-08 19:46:02 +02:00
Konstantin Käfer
a96a8fef76
add a separate SpriteParser object
...
transforms a JSON and an associated PNG file into individual SpriteImage objects that can be inserted into a SpriteStore
2015-07-08 19:45:59 +02:00
Konstantin Käfer
7f705da564
Sprite store API
2015-07-08 19:45:59 +02:00
Konstantin Käfer
3ea640e6e3
run the Assert.Always test first by reordering the symbols
2015-07-06 16:44:48 +02:00
John Firebaugh
3670a78569
Convert Worker tests to Thread tests
2015-07-01 15:21:10 -07:00
Konstantin Käfer
45d0cbb4c7
add assert_always() macro for release build assertions
2015-06-29 11:32:19 +02:00
Thiago Marcos P. Santos
4623baa1a5
Add tests for renderStill() misuse
2015-06-16 14:09:51 +03:00
Konstantin Käfer
f85889dc75
allow constructing LatLng/LatLngBounds objects from TileIDs
2015-06-08 16:13:37 -04:00
Thiago Marcos P. Santos
14083700e5
Test Map object destruction with pending requests
...
Test whenever destroying a Map object with requests pending
works and is done quickly.
The test injects artificial delays in selected requests and
tries to destroy the Map object afterwards.
Currently glyph requests are skipped because there is a bug
being worked on in a different issue.
2015-06-04 14:44:34 +03:00
Ansis Brammanis
9c03b396c0
Merge remote-tracking branch 'origin/master' into HEAD
...
Conflicts:
src/mbgl/renderer/painter_fill.cpp
2015-06-03 19:20:41 -04:00
Thiago Marcos P. Santos
5c4c6648d1
Rebase the resource loading tests
...
Update the ResourceLoader tests to reflect the changes
after we merged ResourceLoader with Style.
2015-06-02 20:43:00 +03:00
John Firebaugh
ec06bb7e3c
Merge ResourceLoader into Style and move atlas ownership
2015-06-01 13:22:02 -07:00
Ansis Brammanis
ff6a5ce5bc
Merge remote-tracking branch 'origin/master' into new-labelling
...
Conflicts:
src/mbgl/map/source.cpp
src/mbgl/map/source.hpp
src/mbgl/map/tile_data.cpp
src/mbgl/map/tile_parser.cpp
src/mbgl/map/vector_tile_data.cpp
src/mbgl/renderer/painter.cpp
src/mbgl/renderer/symbol_bucket.cpp
src/mbgl/text/glyph.hpp
src/mbgl/text/glyph_store.cpp
src/mbgl/text/placement.cpp
test/suite
2015-05-28 20:01:15 -04:00
Thiago Marcos P. Santos
6624dbb225
Add ResourceLoader unit tests
...
This first test will simulate a request failure on every resource
directly or indirectly loaded by the ResourceLoader. The idea is
to verify whenever we are failing gracefully or not.
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
6ef6591a52
Add MockFileSource and MockView for testing the ResourceLoader
...
- MockFileSource
Will load pre-defined resources from the filesystem. It supports
passing a string, that when it matches an URL, will simulate a failure.
- MockView
It is just a no-op to not get in the way when testing
resource loading.
Few more additions:
- style.json
Specially crafted style that will look always for the same tile,
glyph range, etc at the "test/fixtures/resources/" path. No matter
where you look (or at what zoom), you always get the same stuff.
- vector.pbf
This taken from a part of Taipei that will request several glyph
ranges.
2015-05-22 10:44:18 +03:00
John Firebaugh
b304b20073
Add Thread tests; get argument transfer working for all cases
2015-05-21 19:57:28 -07:00
Ansis Brammanis
7abd7950c9
Merge branch 'master' into new-labelling
...
Conflicts:
src/mbgl/map/tile_parser.cpp
src/mbgl/map/tile_parser.hpp
src/mbgl/renderer/painter.hpp
src/mbgl/renderer/painter_symbol.cpp
src/mbgl/renderer/symbol_bucket.cpp
src/mbgl/renderer/symbol_bucket.hpp
src/mbgl/text/collision.cpp
src/mbgl/text/collision.hpp
src/mbgl/text/placement.cpp
2015-05-19 11:09:33 -04:00
John Firebaugh
386be7c0fa
Remove unused
...
There are no longer any requests made that don't have a run loop to
dispatch back to.
2015-05-13 13:54:16 -07:00
Konstantin Käfer
40b604448f
add BinPack test
2015-05-12 20:46:56 -07:00