Konstantin Käfer
4d5c6333be
[core] move retry logic to DefaultFileSource
2015-11-02 17:24:40 +01:00
John Firebaugh
7821dccae5
[core] Polymorphic layout and paint parsing
2015-10-29 16:46:49 -07:00
Konstantin Käfer
b9452bcbba
[core] refactor test server startup
2015-10-28 16:51:13 +01:00
Konstantin Käfer
5173bf1bb8
[core] Make response data shared to avoid excessive copying
2015-10-26 15:54:27 +01:00
John Firebaugh
c46a8254c4
[core] Style-sourced shape annotation properties
...
This introduces the possibility to source the type and style properties
of a shape annotation from a designated layer in the style.
2015-10-22 15:27:53 -07:00
John Firebaugh
3afc8b4a29
[core] Introduce StyleLayer subclasses
2015-10-22 09:34:40 -07:00
John Firebaugh
028abaab00
Ensure that LiveTileData can be reparsed
...
Annotation tiles may become partially parsed just like regular tiles,
for example if a point annotation is added to the map before the style's
sprite has been loaded. In such cases, they need to be reparsed or the
annotation will not be rendered. Previously, the code path for reparsing
would be short-circuited by a dynamic_cast<VectorTileData*> followed by
a null check. This commit removes that case and adds (back) a virtual
reparse method to the TileData interface.
2015-09-28 14:10:00 -07:00
Mike Morris
4540c3c0e8
View::swap -> View::beforeRender View::afterRender
...
To be able to resize the framebuffer on the map thread
in HeadlessView.
2015-08-25 14:39:49 -04:00
Bruno de Oliveira Abinader
98534631e0
Add circle render type
...
As specified in:
https://github.com/mapbox/mapbox-gl-style-spec/blob/v8-circle/reference/v8.json
Part of #1740 .
2015-08-20 11:59:07 -07:00
Tom MacWright
6df50dba45
Font stacks as arrays
2015-08-20 11:58:57 -07:00
John Firebaugh
e42cfa239f
Update test-suite and test fixtures for v8
2015-08-20 11:58:57 -07:00
Thiago Marcos P. Santos
06e27f905e
Mark overrides
...
Detected by clang++-3.6
2015-07-11 12:42:45 +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
1fbbedd47b
Make FixtureLogObserver thread-safe
...
We can log for different threads (main, map, workers, etc) so
we need to lock before adding the messages on the list.
This was causing few tests to randomly crash.
2015-07-08 23:48:05 +03:00
Konstantin Käfer
1f4b5e7736
add custom imagery visual test
2015-07-08 19:46:03 +02:00
Konstantin Käfer
c66ec8739b
show info message when Sprite does not exist
2015-07-08 19:46:03 +02:00
Konstantin Käfer
493c72b1f4
move crc64() to test fixture
2015-07-08 19:46:03 +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
9991f9da54
add RAII-style FixtureLog
2015-07-08 19:45:59 +02:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
Thiago Marcos P. Santos
e4cc06b798
Add test fixtures for testing raster tiles
...
Add a raster source for the style we use for testing that will
force requests for raster tiles.
2015-07-02 23:21:42 +03:00
John Firebaugh
e466348dea
Remove unnecessary use of optional
2015-07-01 17:12:21 -07:00
Konstantin Käfer
84e2ea886d
drive map rendering from main thread
2015-06-26 10:32:06 -07:00
Bruno de Oliveira Abinader
7bfae2a1a5
Fix result value from parseProperty when T = std::array<float, 2>
2015-06-22 22:46:37 +03:00
Thiago Marcos P. Santos
ac4179e7de
Use a pipe() to synchronize the server initialization
...
As the signals are intercepted by debuggers.
2015-06-18 15:48:39 +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
Thiago Marcos P. Santos
4b061a0588
Add output of RepeatedRender test to .gitignore
...
Also delete files that are test output but were checked in.
2015-05-15 12:34:57 +03:00
John Firebaugh
c0b75f1af7
Remove Environment::terminate and associated code
...
Fixes #1336
2015-04-28 09:16:26 -04:00
Konstantin Käfer
5d769f9b62
explicitly call .discard() to resize the view on static renders
...
- this is only a stopgap; we need to properly pass state between threads
- doesn't fix changing the pixel ratio
2015-04-17 13:40:42 +02:00
Konstantin Käfer
7d58a41de5
make sqlite storage more resilient to sporadic errors
...
- catch SQLite exceptions and report them
- failed statements are ignored, we're really just caching here, so if it fails we're handling it gracefully elsewhere
- handle cases where the database file goes away after we opened it
- handle cases where the schema wasn't created after the database file was opened successfully
- add tests
2015-04-07 18:04:23 +02:00
Konstantin Käfer
220ebf61dd
replace iterator variable types with auto
2015-04-01 16:42:42 +02:00
Konstantin Käfer
382358402a
update sprite scaling test case
2015-03-26 10:56:42 +01:00
Konstantin Käfer
48c55af5c1
fix sprites for pixel ratios that are not 1 and 2
...
- OpenGL ES 2 doesn't allow NPOT textures with wrap-around
- The Sprite object reported the map's pixelRatio, even though it loaded @2x assets
- Copying icons from the sprite into the atlas now uses bilinear scaling to scale up to the actual size
2015-03-17 12:30:40 +01:00
Thiago Marcos P. Santos
124b49562d
Get rid of printf and cout by using Log::*
...
Use our logging system that will route the message accordingly on
the target platform.
Fixes #613
2015-03-12 14:19:32 +02:00
Thiago Marcos P. Santos
79f3149d9d
Update the FixtureLog
...
Now the FixtureLog is an Log::Observer instead of a backend. The
observer can sniff and filter log messages, that can be used
for fail a test if it emits a warning for example.
2015-03-12 13:28:41 +02:00
Konstantin Käfer
18263436e9
add missing test fixture file
2015-02-17 11:42:55 -08:00
Konstantin Käfer
fe0baffe0d
update uv_zip and add tests
2015-02-16 18:30:19 -08:00
Ansis Brammanis
177f441cc9
add test for parsing enum, bool, string functions.
2015-02-06 10:11:27 -08:00
Konstantin Käfer
73f7db9af2
cleanup makefiles
2015-02-04 11:54:01 +01:00
Konstantin Käfer
aa09aa321b
rearrange tests and make more robust
2015-02-04 10:49:06 +01:00
Konstantin Käfer
8a1fce547e
rearrange tests and add storage tests
2015-02-04 10:49:05 +01:00
John Firebaugh
d964949a12
Update styles
2014-11-04 12:26:14 -08:00
Konstantin Käfer
4efb441008
Run tests using http requests
...
We now start a local HTTP server on port 2900 that serves the test fixtures. This is the same port we also use in the JS test suite
fixes #532
2014-11-04 12:45:01 +01:00
Konstantin Käfer
86230821e4
use test suite as submodule instead of using npm
2014-10-31 12:02:39 -04:00
Konstantin Käfer
10cb83579f
gcc fixes
2014-10-23 02:46:15 -07:00
Konstantin Käfer
214f99673f
fix variable shadowing
2014-10-22 18:19:01 +02:00
Konstantin Käfer
7d6feffd56
replace boost optional with mapbox optional
2014-10-22 16:29:10 +02:00
Konstantin Käfer
087d04292a
Merge branch 'master' of github.com:mapbox/mapbox-gl-native
2014-10-22 15:18:30 +02:00
Konstantin Käfer
905c4294be
Merge branch 'libuv-0.10-headless-display' into mason
...
Conflicts:
common/http_request_baton_curl.cpp
include/mbgl/map/map.hpp
include/mbgl/util/uv_detail.hpp
scripts/travis_before_install.sh
setup-libraries.sh
src/map/map.cpp
src/storage/file_request_baton.cpp
src/storage/http_request.cpp
src/util/uv-messenger.c
2014-10-22 15:14:21 +02:00
Konstantin Käfer
253bbd1c5b
New mason-based build system
2014-10-22 15:13:35 +02:00