summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [tests] Added utests for RunLoop refcountingThiago Marcos P. Santos2016-01-202-0/+76
|
* Revert "Revert WebP support due to broken builds"Bruno de Oliveira Abinader2016-01-203-0/+15
| | | | | | | This reverts commit 6709bdcacd5a45a10b554f3f225206c9494e5e43. There was an issue with the script that removes '-lwebp' from WebP linker flags, since we're statically linking. This is now fixed.
* [core][ios][osx][android] make SpriteImage accept PremultipliedImageAnsis Brammanis2016-01-197-90/+95
| | | | | | | | | | | | the SpriteImage constructor signature changes from SpriteImage( uint16_t width, uint16_t height, float pixelRatio, std::string&& data, bool sdf = false); to SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false)
* [core][ios][osx][android] fix icons with non-integer width/heightAnsis Brammanis2016-01-193-16/+16
| | | | | | | | | | | ref #3031 ref #2198 For example, an icon that has: - a pixel width of 10 - a pixel ratio of 3 - a scaled with of 3.333 is now supported.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-2/+2
|
* Revert WebP support due to broken buildsJohn Firebaugh2016-01-193-15/+0
| | | | This reverts commits 2010fbb0e61cbe7c0b08560118ca887fc1d7193e, a361ce47a19d37b96b48cd605c62c5ab79bba462, and d004bb275ae3ea60bb6c2febd6fa22f1f51c3993.
* [linux] Replace PNG with WebP on tile source URLBruno de Oliveira Abinader2016-01-191-0/+7
| | | | | This is a hack, in the same fashion as adding {ratio} to the tile URLs. We should update the raster tile sources to use WebP by default.
* [linux] Added WebP tile supportBruno de Oliveira Abinader2016-01-192-0/+8
| | | | | | | - Android support is currently disabled due to a libwebp build issue. - iOS and OS X support will appear after the next Mapbox iOS SDK release. Related: #https://github.com/mapbox/mapbox-gl-native/issues/2354
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-181-2/+34
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] use stale glyphsKonstantin Käfer2016-01-155-6/+70
| | | | Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
* [core] use stale sprite dataKonstantin Käfer2016-01-155-0/+64
| | | | This is a naïve implementation that essentially merges updated data into existing data. It will *not* remove icons from the stale sprite if they aren't present in the fresh sprite (we aren't tracking the source of a sprite, and the user could have changed it as well). Similarly, it will not update icons that have changed in dimension. This is a rare edge case and probably not worth implementing.
* [test] ensure static rendering finishes when a tile can't be loadedKonstantin Käfer2016-01-154-0/+103
|
* [core] use stale and refreshing TileJSON/GeoJSON dataKonstantin Käfer2016-01-153-0/+48
| | | | We're now supporting using stale TileJSON and GeoJSON data. When we receive a new answer with an updated TileJSON file, we're replacing the Source's metadata with the new one and trigger updates to make sure we're loading the correct tiles. Similarly, GeoJSON data will be reparsed.
* [core] use stale stylesKonstantin Käfer2016-01-157-0/+94
| | | | This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
* [core] Support multiple paths in SQLiteCache::getShared()Konstantin Käfer2016-01-152-0/+35
| | | | If you use many different caches, expired weak_ptrs will pile up in the unordered_map, but that is an edge case, and you probably shouldn't do that anyway.
* [core] Restore existing response bodyJohn Firebaugh2016-01-141-0/+4
| | | | Until #2721 lands we still need this.
* [ios] remove `testCompassTap` testJason Wray2016-01-141-26/+0
| | | | | Fails on CI because KIF is unstable. Refs 61615a44fd49336905e7b18c8ac665ce1eb7d4a4, #2769, #2734
* [core] Let SQLiteCache decide when store or refresh responsesJohn Firebaugh2016-01-142-5/+6
|
* [core] Add an explicit "not modified" indicator to ResponseJohn Firebaugh2016-01-141-6/+2
|
* [core] std::shared_ptr<const Response> ⇢ const Response&John Firebaugh2016-01-143-32/+27
|
* [core] Eliminate FileCache interfaceJohn Firebaugh2016-01-141-3/+3
| | | | There is only one implementation and we're unlikely to add more.
* [core] Consolidated zoom and angle anchor logicMinh Nguyễn2016-01-141-0/+25
| | | | Made anchor a CameraOption for easeTo().
* [core] remove bilinear, nearest scaling, fix #3164Ansis Brammanis2016-01-133-71/+8
|
* [core] Remove request coalescing in OnlineFileSourceJohn Firebaugh2016-01-133-161/+0
|
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-1312-11/+13
| | | | 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.
* [core] Simplify asset:// implementationJohn Firebaugh2016-01-139-122/+37
| | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit.
* [ios] Removed -testCenterSetMinh Nguyễn2016-01-131-24/+0
| | | | This test is causing frequent failures on Bitrise; the failure doesn’t appear to reflect a real-world problem.
* [core] move SourceInfo parsing to StyleParserKonstantin Käfer2016-01-131-1/+1
|
* [core] move invariant Source ID from SourceInfo to SourceKonstantin Käfer2016-01-131-8/+8
|
* [core] move raster tile URL normalization to source parsingKonstantin Käfer2016-01-131-13/+9
|
* [tests] Fix how we launch the test serverThiago Marcos P. Santos2016-01-111-2/+2
| | | | `execl` uses varargs thus must be NULL terminated.
* [test] Fix test case commentsKonstantin Käfer2016-01-111-2/+2
| | | | Follow up to a06f28ddb70cd1963076d6df2ef3716d45b7a13e
* [core] Get rid of ::unref() for Timer and AsyncTaskThiago Marcos P. Santos2016-01-094-15/+0
| | | | | Not need, legacy from libuv. The RunLoop keep the main loop running until is explicitly no longer needed.
* [tests] Test that Timer::stop on a stopped timer is a no-opJohn Firebaugh2016-01-081-0/+8
|
* [core] only cache successful or NotFound responsesKonstantin Käfer2016-01-082-0/+176
| | | | We don't want other types of error end up in our cache, since it'll likely evict perfectly good content.
* [test] allow aborting rendering after a timeoutKonstantin Käfer2016-01-083-4/+17
|
* [core] don't consult cache for asset resourcesKonstantin Käfer2016-01-081-0/+42
|
* [tests] Sleep more than 1s before refreshing accessed timeThiago Marcos P. Santos2016-01-071-3/+11
| | | | | | | The cache `accessed` field resolution is 1s, so we need to sleep a little bit more in order to make sure that the cache entries we are refreshing will have a different `accessed` time than the other entries.
* Happy new year!Minh Nguyễn2016-01-051-1/+1
|
* [tests] Added utests for cache versioningThiago Marcos P. Santos2016-01-051-4/+38
|
* [test] terminate test server when stdin closesKonstantin Käfer2016-01-055-46/+66
|
* [test] Remove terminate-when-inactive behavior from the test serverJohn Firebaugh2016-01-041-13/+0
| | | | | | | It caused #3163. Attempts at having the child exit automatically when the parent exits were stymied by the fact that unix sucks: http://stackoverflow.com/q/284325/52207.
* [tests] Add unit tests for SQLiteCache size limitThiago Marcos P. Santos2015-12-284-0/+233
|
* [tests] Simplify MockFileSourceJohn Firebaugh2015-12-245-157/+59
|
* [tests] Rewrite {Sprite,Glyph}Store tests in the style of ResourceLoadingJohn Firebaugh2015-12-244-366/+222
|
* [tests] Test with OnlineFileSourceJohn Firebaugh2015-12-2321-74/+74
| | | | | When we introduce OfflineFileSource, the behavior of existing tests should not change.
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-234-156/+245
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* [tests] Moved lazy source loading tests to ResourceLoadingBruno de Oliveira Abinader2015-12-233-187/+139
|
* [tests] Rewrite resource loading testJohn Firebaugh2015-12-222-122/+99
| | | | Make it more readable and easier to debug.
* [core] Merge SQLiteCache into the platform libraryJohn Firebaugh2015-12-221-1/+0
| | | | OfflineFileSource will depend on SQLite too.