summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Test Map object destruction with pending requestsThiago Marcos P. Santos2015-06-044-34/+188
| | | | | | | | | | | 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.
* Cleanup the MapContext before the util::Thread destructorThiago Marcos P. Santos2015-06-041-0/+1
| | | | | | | | | | The util::Thread will call the stop() method of the MapContext's RunLoop which will wait for the pending tasks tied to it to complete. If we have a request that is timeout'ing, this could mean a really long wait. Instead, we now send a cleanup message that will reset all the attributes first (canceling the pending requests) so the the MapContext gets destructed quickly.
* Merge remote-tracking branch 'origin/master' into HEADAnsis Brammanis2015-06-038-83/+55
|\ | | | | | | | | Conflicts: src/mbgl/renderer/painter_fill.cpp
| * Do not call update() asynchronously on the test caseThiago Marcos P. Santos2015-06-021-6/+2
| | | | | | | | | | | | We need to call it before checking if the tiles are loaded to give the Source a chance to request for more tiles if it is needed.
| * Rebase the resource loading testsThiago Marcos P. Santos2015-06-025-45/+26
| | | | | | | | | | Update the ResourceLoader tests to reflect the changes after we merged ResourceLoader with Style.
| * Merge ResourceLoader into Style and move atlas ownershipJohn Firebaugh2015-06-012-17/+12
| |
| * Adapt metrics tests to constant flush timerJason Wray2015-05-282-15/+15
| | | | | | | | | | | | | | | | Disables three tests: - testTimerFiresFlush: passes but takes 60 seconds (full MGLFlushInterval) - testFlushPostsEvents: fails - testPostEventsNetworkRequest: fails
* | update test suiteAnsis Brammanis2015-06-021-1/+0
| |
* | Merge remote-tracking branch 'origin/master' into new-labellingAnsis Brammanis2015-05-2828-31/+781
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Add tests for handling corrupted dataThiago Marcos P. Santos2015-05-283-32/+98
| | | | | | | | | | | | | | The MockFileSource will insert garbage on the reply and report as a request done successfully. The network stack cannot detect this kind of errors but the consumer should report it like we do for network problems.
| * Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-269-26/+24
| |
| * Merge pull request #1627 from mapbox/hide_logsThiago Marcos P. Santos2015-05-221-2/+29
| |\ | | | | | | Add check for log messages on ResourceLoader tests
| | * Add check for log messages on ResourceLoader testsThiago Marcos P. Santos2015-05-221-2/+29
| | | | | | | | | | | | | | | This will make the tests less verbose and at the same time make sure we are logging properly.
| * | Do not call abandon texture if there is no textureThiago Marcos P. Santos2015-05-221-2/+0
| |/ | | | | | | | | Check if the texture was created before abandoning on SpriteAtlas destructor. Linux driver was fine with that, but was crashing on Mac.
| * Add ResourceLoader unit testsThiago Marcos P. Santos2015-05-222-0/+155
| | | | | | | | | | | | 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.
| * Add MockFileSource and MockView for testing the ResourceLoaderThiago Marcos P. Santos2015-05-2210-0/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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.
| * Add callback for error notifications on renderStill()Thiago Marcos P. Santos2015-05-222-3/+3
| | | | | | | | | | | | | | | | | | The callback will be called when any of the resources requested from the network failed to load. There is not recovery implemented yet, so the closest thing to reseting the Map object and reloading all the resources would be setting a new style.
| * Add Thread tests; get argument transfer working for all casesJohn Firebaugh2015-05-212-1/+104
| |
| * Change LaunchScreen text to © because unicode is awesomeJason Wray2015-05-211-1/+1
| |
| * Add iOS test project launch images for older devices, tooJason Wray2015-05-215-0/+219
| |
| * Add iOS tests support for iPhone 6/6+ screen sizesJason Wray2015-05-213-4/+55
| |
| * Update tests for access token changesJason Wray2015-05-214-10/+5
| |
| * Update test suiteJohn Firebaugh2015-05-191-0/+0
| |
| * bump test suiteKonstantin Käfer2015-05-191-0/+0
| |
* | Reparse tiles when zoom level > source maxzoomAnsis Brammanis2015-05-283-103/+104
| | | | | | | | | | | | | | | | | | | | so that layout property functions are applied correctly and so that label placement is redone js: https://github.com/mapbox/mapbox-gl-js/pull/1005 and https://github.com/mapbox/mapbox-gl-js/commit/440bc02505eb66f198a3d98708ddc3d9453f453f
* | Merge branch 'master' into new-labellingAnsis Brammanis2015-05-19269-344/+22122
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | 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
| * Privatized MGLMapboxEventsMinh Nguyễn2015-05-182-1/+2
| | | | | | | | `-pauseMetricsCollection` and `-resumeMetricsCollection` were originally introduced to mitigate concerns around battery usage, but `MGLMapboxEvents` has since evolved to tread much lighter on the battery. There’s no longer any need for the client to call these methods directly. The iOS test project now includes MGLMapboxEvents.h explicitly to avoid having to package a header that will go unused.
| * Render translucent background layers (fixes #1514)John Firebaugh2015-05-151-0/+0
| |
| * Removed unneeded unique_ptrThiago Marcos P. Santos2015-05-151-5/+3
| |
| * Make the MapContext object run on its own thread on the testsThiago Marcos P. Santos2015-05-151-5/+7
| | | | | | | | | | | | The MapContext can only run on its own thread because it is registering a EnvironmentScope and it is making many assertions on Debug mode if its methods are being called on the Map thread.
| * Add output of RepeatedRender test to .gitignoreThiago Marcos P. Santos2015-05-152-0/+0
| | | | | | | | Also delete files that are test output but were checked in.
| * Restore sprite load checkJohn Firebaugh2015-05-141-0/+0
| | | | | | | | | | | | This is necessary to ensure that background and fill images are ready to render. Fixes #1563
| * Speculative fix for PNG alpha/gamma handlingJohn Firebaugh2015-05-141-0/+0
| | | | | | | | The libpng documentation is hopelessly impenetrable and I have no idea what I'm doing, but this seems to fix the headless rendering failures.
| * Fix misleading headless test output (fixes #1557)John Firebaugh2015-05-141-3/+1
| |
| * Update test suiteJohn Firebaugh2015-05-131-0/+0
| |
| * update test suite and fail Travis when comparisons failKonstantin Käfer2015-05-131-0/+0
| |
| * Remove unusedJohn Firebaugh2015-05-133-56/+0
| | | | | | | | | | There are no longer any requests made that don't have a run loop to dispatch back to.
| * add BinPack testKonstantin Käfer2015-05-122-0/+52
| |
| * patch up test projectJustin R. Miller2015-05-122-0/+14
| |
| * update test app to use fake in-app settingsJustin R. Miller2015-05-121-0/+3
| |
| * iOS metrics testsJustin R. Miller2015-05-12235-0/+21584
| |
| * Merge pull request #1469 from mapbox/1435-android-gl-crashBrad Leege2015-05-113-11/+71
| |\ | | | | | | Android GL Crash
| | * Ignore deactivate when no valid EGL display. Fixes #1435Leith Bade2015-05-093-11/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialise NativeMapView's EGL variables before Map Fix hang Add check for double pause Add test for double pause
| * | ignore Transform changes with NaN parametersKonstantin Käfer2015-05-082-0/+126
| | |
| * | Merge remote-tracking branch 'origin/1369-alternate-fix'John Firebaugh2015-05-082-0/+45
| |\ \
| | * | don't trigger a HTTP request twiceKonstantin Käfer2015-05-082-0/+45
| | | |
| * | | make WorkRequests cancelableKonstantin Käfer2015-05-081-10/+17
| | | |
| * | | add worker cancellation test (failing)Konstantin Käfer2015-05-081-0/+27
| |/ /
| * | Added tests for 6292e95f80fa2e0a9a7aa4d4d4e320a207e78d27Minh Nguyễn2015-05-071-0/+7
| | |
| * | Reference safety for Worker after callbacksJohn Firebaugh2015-05-062-0/+71
| | | | | | | | | | | | | | | | | | | | | Joining a WorkRequest now ensures that either the after callback has already been executed, or will never be executed. Fixes #1438