summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Test inset MGLMapViewMinh Nguyễn2015-04-245-8/+41
| | | | Verify that the ornaments hug the `MGLMapView` when it’s smaller than the view controller’s root view.
* merge build targets so we only have one build file per platformKonstantin Käfer2015-04-241-1/+1
| | | | 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
* fixes #830, #880: bring back iOS functional testsJustin R. Miller2015-04-2311-251/+266
|
* Revert "build on trusty"John Firebaugh2015-04-221-3/+0
| | | | | | This reverts commit decc493ec8c30d66bcdf3aa19f58972eb045b5dc. Conflicts: .mason
* Use a promise rather than async danceJohn Firebaugh2015-04-201-25/+8
|
* build on trustyKonstantin Käfer2015-04-201-0/+3
|
* rename Mode::Static => Mode::StillKonstantin Käfer2015-04-173-3/+3
|
* explicitly call .discard() to resize the view on static rendersKonstantin Käfer2015-04-177-0/+103
| | | | | - this is only a stopgap; we need to properly pass state between threads - doesn't fix changing the pixel ratio
* don't hide unchecked messagesKonstantin Käfer2015-04-171-1/+2
|
* don't throw an exception in the map thread for bad stylesKonstantin Käfer2015-04-172-0/+34
|
* align static render mode and still image render modeKonstantin Käfer2015-04-171-9/+32
| | | | | - static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object - map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
* Convert storage tests to RunLoopJohn Firebaugh2015-04-151-115/+133
|
* make implementation files private headersKonstantin Käfer2015-04-133-3/+3
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-1315-104/+94
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-1014-56/+68
|
* add Thread<T> and RunLoopKonstantin Käfer2015-04-103-28/+17
| | | | | | Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->(). RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
* Move ClipID to clip_id.hpp/cppJohn Firebaugh2015-04-091-1/+1
|
* use sqlite itself to lock the database file rather than those unportable bsd ↵Konstantin Käfer2015-04-081-10/+19
| | | | locks
* guard against invalid database filesKonstantin Käfer2015-04-081-1/+45
|
* make sqlite storage more resilient to sporadic errorsKonstantin Käfer2015-04-074-2/+344
| | | | | | | | - 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
* Tile::ID ⇢ TileIDJohn Firebaugh2015-04-062-104/+105
| | | | This allows making both Tile and TileID private.
* Add typedefs for std::chrono::steady_clock typesJohn Firebaugh2015-04-021-1/+2
|
* replace iterator variable types with autoKonstantin Käfer2015-04-011-3/+3
|
* add style URL testsJustin R. Miller2015-03-311-0/+5
|
* update sprite scaling test caseKonstantin Käfer2015-03-262-0/+0
|
* support wrapped bilinear scalingAnsis Brammanis2015-03-261-11/+11
| | | | | | to get rid of seams in repeating patterns. https://github.com/mapbox/mapbox-gl-styles/issues/50#issuecomment-86159351
* fix sprites for pixel ratios that are not 1 and 2Konstantin Käfer2015-03-176-0/+73
| | | | | | - 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
* Revert "Move atlas ownership to Style"John Firebaugh2015-03-131-12/+16
| | | | This reverts commit bffee0715458530c6c86f440f757a4de667278a2.
* Move atlas ownership to StyleJohn Firebaugh2015-03-131-16/+12
| | | | | | This follows gl-js and just makes sense -- whenever the style changes the atlases should be blown away. Refs #957
* scripts for running linux tests with dockerKonstantin Käfer2015-03-131-8/+1
|
* Get rid of printf and cout by using Log::*Thiago Marcos P. Santos2015-03-122-16/+18
| | | | | | | Use our logging system that will route the message accordingly on the target platform. Fixes #613
* Update the FixtureLogThiago Marcos P. Santos2015-03-127-157/+126
| | | | | | 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.
* Fix conditional in normalizeSourceURLJohn Firebaugh2015-03-061-2/+2
| | | | | | The existing conditional would always be false, since it was comparing a url that begins with "mapbox://". In fact no conditional is necessary; the secure TileJSON resource should always be requested.
* Insert {ratio} before extension, not inside access tokenMinh Nguyễn2015-03-061-0/+4
| | | | Fixes #959.
* Only add {ratio} to raster tile URLsMinh Nguyễn2015-03-061-6/+10
| | | | Thanks to @mb12 for the suggestion.
* Ported util::mapbox tests from mapbox-gl-jsMinh Nguyễn2015-03-062-0/+62
| | | | Left out several tests that were redundant because mapbox.cpp only looks at the passed in access token.
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-0615-38/+149
| | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down.
* make Map::resize() privateKonstantin Käfer2015-03-061-1/+0
| | | | they can only be called by View::resize
* add missing test fixture fileKonstantin Käfer2015-02-171-0/+1
|
* add ca bundle loading back to CURLKonstantin Käfer2015-02-171-1/+1
|
* update uv_zip and add testsKonstantin Käfer2015-02-163-3/+50
|
* fixes #476 & #853: pixel/meter/latlng conversion routines in core & iOSJustin R. Miller2015-02-161-1/+1
|
* Merge pull request #884 from mapbox/move-bucketsLeith Bade2015-02-141-0/+0
|\ | | | | Move to mapbox bucket
| * Move to mapbox bucketLeith Bade2015-02-131-0/+0
| |
* | make sure that the async handle always gets closedKonstantin Käfer2015-02-131-0/+28
|/
* update test suiteAnsis Brammanis2015-02-111-0/+0
|
* Merge pull request #821 from mapbox/pattern-functionsJohn Firebaugh2015-02-103-0/+49
|\ | | | | functions for everything
| * Update test suite and style submodules to latest v7John Firebaugh2015-02-061-0/+0
| |
| * add test for parsing enum, bool, string functions.Ansis Brammanis2015-02-062-0/+49
| |
* | move iOS code from gl-cocoa to this projectJustin R. Miller2015-02-0919-0/+1412
|/