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
Brad Leege
d4fcb5bb98
Merge pull request #1469 from mapbox/1435-android-gl-crash
...
Android GL Crash
2015-05-11 11:42:21 -05:00
Leith Bade
703e0bc2ee
Ignore deactivate when no valid EGL display. Fixes #1435
...
Initialise NativeMapView's EGL variables before Map
Fix hang
Add check for double pause
Add test for double pause
2015-05-09 12:02:39 +10:00
Konstantin Käfer
24ea920810
ignore Transform changes with NaN parameters
2015-05-08 20:25:47 +02:00
Konstantin Käfer
fb984a22d1
don't trigger a HTTP request twice
2015-05-08 11:30:26 +02:00
John Firebaugh
5b4015ccba
Reference safety for Worker after callbacks
...
Joining a WorkRequest now ensures that either the after callback has
already been executed, or will never be executed.
Fixes #1438
2015-05-06 14:30:02 -07:00
John Firebaugh
84fffb42f5
Revert "Disable headless tests temporarily"
...
This reverts commit 2b6e680e4a .
2015-05-05 14:13:46 -07:00
John Firebaugh
a7df0781f8
Don't crash if ResourceLoader::_sprite is null
2015-05-05 13:34:46 -07:00
John Firebaugh
36f695b411
Write SQLite tests in terms of Impl
2015-05-01 14:31:39 -04:00
John Firebaugh
2b6e680e4a
Disable headless tests temporarily
2015-04-30 09:58:31 -04:00
John Firebaugh
c0b75f1af7
Remove Environment::terminate and associated code
...
Fixes #1336
2015-04-28 09:16:26 -04:00
Konstantin Käfer
2b633cc51c
build on Travis' sudo: false infrastructure
2015-04-28 10:43:13 +02:00
Jason Wray
4d631623c7
Merge master @ 353e5661de
2015-04-27 17:49:24 -04:00
Konstantin Käfer
0d5568f724
merge build targets so we only have one build file per platform
...
previously, we used multiple different projects for various targets (app, test, render) that overwrote each other, so it was impossible to have one project to build them all, one project to compile them, one project to run them all and in the darkness bind them
2015-04-24 11:50:50 +02:00