John Firebaugh
cdc5f8ff14
[tests] Enable set-style-* integration tests
2017-06-15 07:43:51 -07:00
John Firebaugh
f610e9bef9
[tests] Test updating icon and pattern images
2017-06-13 10:18:43 -07:00
John Firebaugh
9eba2a66d1
[core, node, darwin, qt] Remove support for paint classes
2017-05-15 09:45:55 -07:00
Asheem Mamoowala
5c52401d55
[core] Make Map.addImage tests pass ( #8843 )
...
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -07:00
Thiago Marcos P. Santos
1470ee7db6
[node] Add test for request not found
2017-04-20 18:46:35 +03:00
Thiago Marcos P. Santos
51ebb96b1d
[node] Add map.cancel()
...
Cancels an ongoing rendering.
2017-04-20 18:46:35 +03:00
Thiago Marcos P. Santos
d767545f72
[node] Benchmark/stress test
...
Tries to simulate the workload from api-gl.
2017-04-20 18:46:35 +03:00
Thiago Marcos P. Santos
761cd136a8
[node] Add request failure tests
...
Test for timeout and when the request fails.
2017-04-20 18:46:35 +03:00
Konstantin Käfer
9a9408e811
[core] Render parent raster tiles when ideal tile can't be loaded
2017-04-20 09:38:18 +02:00
Bruno de Oliveira Abinader
5e3308c5c0
[node] Update changes in MapObserver::onDidFailLoadingMap
2017-03-17 11:25:48 +02:00
Thiago Marcos P. Santos
5700c99e55
[node] Fix memory test hanging after GlyphAtlas refactoring ( #8394 )
...
Replies are assumed to be asynchronous after e3500c1f79 .
2017-03-14 13:19:58 -07:00
Asheem Mamoowala
60d10dd27d
[core] Add support for queryRenderedFeatures filter
2017-03-04 15:42:07 -08:00
Konstantin Käfer
6b0ad899b3
[node] adhere to node module naming requirements
...
https://nodejs.org/api/addons.html#addons_building specifies that "The module_name must match the filename of the final binary (excluding the .node suffix).". While the mismatch between `mapbox-gl-native` and `mapbox_gl_native` hasn't caused issues so far, we should play by the book.
2017-02-23 22:15:57 +01:00
Konstantin Käfer
62ea1f2185
[core] remove trailing whitespace, add trailing newlines, add space after //
2017-01-27 11:44:16 +01:00
John Firebaugh
9f9e820540
[build] Use test-suite integration tests from mapbox-gl-js
2017-01-09 19:05:28 -08:00
Bobby Sudekum
2988ca16c1
Add addImage, removeImage API ( #7610 )
2017-01-09 13:03:17 -08:00
John Firebaugh
07e58fe961
[tests] Fix variable reference in test-suite harness
2016-12-14 12:15:29 -08:00
John Firebaugh
e8a48a6d63
[node] Fix order of operations when setting zoom and center
...
Zoom must be set first, to avoid center potentially getting constrained.
Fixes #7351
2016-12-14 10:08:23 -08:00
John Firebaugh
3718e1fa15
[tests] Implement "wait" command with Map#render
...
This ensures that a "wait" command will always fully flush pending update flags. This was not the case with the prior conditional map.loaded() logic.
2016-12-12 16:49:02 -08:00
John Firebaugh
251035cd75
[node] Add setZoom and setPitch support
2016-11-17 13:48:00 -08:00
John Firebaugh
f1e10e31a5
[node] Revert semantics of Map#render
2016-11-17 13:48:00 -08:00
John Firebaugh
da725d7bf9
[node] Initial camera will be set automatically by style
2016-11-09 17:54:45 -08:00
Bruno de Oliveira Abinader
89f3270f72
[node] Added set{Bearing,Center} + updated -test-suite
...
This gives the ability to pan and/or rotate the map in a posterior step
after initial render for testing purposes.
2016-10-11 12:10:32 +03:00
Thiago Marcos P. Santos
edec56e6c5
[node] switch to NodeRequest member fn callback
...
For (hopefully) better performance than creating a new v8::Context to
wrap each callback while still avoiding leaking memory with v8::FunctionTemplate.
Adds a JavaScript shim in front of module.exports.Map to wrap the
req.respond API internally and preserve the public callback-passing
API, while still exporting the correct prototype.
2016-09-06 18:14:22 -04:00
Thiago Marcos P. Santos
05ba97b2b7
[node][tests] Add a test for making sure the map object throws on invalid style
...
Currently this error is not reported.
2016-08-25 22:05:00 +03:00
Mike Morris
480be63396
[node] move memory growth test into separate npm script
...
webp support in memory test
2016-07-14 13:47:02 -04:00
Thiago Marcos P. Santos
70337487d4
[node] Added memory test
2016-07-14 13:47:02 -04:00
Bruno de Oliveira Abinader
6c9e00be3a
[node] Read 'options.showOverdrawInspector'
2016-06-20 13:24:20 +03:00
John Firebaugh
3f5ea169f5
[node] Partial implementation of runtime styling API for node bindings
2016-06-13 17:22:05 -07:00
Konstantin Käfer
27f9a85fea
[node] don't fire callback for canceled AsyncRequest
2016-05-26 20:17:36 +02:00
John Firebaugh
5864c8fc4c
[core] Include geometry in queryRenderedFeatures results
2016-05-18 17:29:16 -07:00
John Firebaugh
c8391729c7
[core] Use geometry.hpp feature type
2016-05-03 17:25:49 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00
Mike Morris
c59b5fb5e6
[node] don't dispose parent module in NodeLog destructor
2016-04-07 17:35:58 -04:00
Thiago Marcos P. Santos
46557874ec
[node] Add test that explicitly doesn call map.release()
...
Make sure mbgl.Map is not holding any references to the node's main
loop and thus preventing the node from exit.
2016-02-24 14:31:11 +02:00
Thiago Marcos P. Santos
8219d72135
[node] Not all tests were calling map.release()
...
Which prevents the test runner to close.
2016-02-20 18:16:33 +02:00
John Firebaugh
675a628aa2
[node] Fix handling of response callback with no arguments; add test
2016-02-19 17:25:57 -08:00
Ansis Brammanis
29d61c0fe7
[node] add debug options to node bindings
...
fix #3579
2016-02-08 14:22:53 -08:00
Konstantin Käfer
e195d86100
[test] don't pass raw strings as error messages
2016-01-14 14:35:02 +01:00
Konstantin Käfer
c5feadf0bd
[test] deliver error responses when the underlying request failed
2016-01-08 13:23:01 +01:00
John Firebaugh
16de579d7c
[core] Rationalize error handling for resource loading
...
* 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.
2015-12-23 12:50:42 -08:00
John Firebaugh
896245e510
[test] Update test suite
2015-12-09 16:25:45 -08:00
John Firebaugh
46a6b03582
[node] Fix race condition in tests
...
The message callback races with the rest of this test. We already have
tests for errors being emitted from mbgl, so just remove it.
2015-11-18 16:53:11 -08:00
Mike Morris
5e58070dec
[node] make ratio optional, default to 1.0
2015-11-04 18:18:08 -05:00
Lucas Wojciechowski
da569c266b
[node] enable npm to build mapbox-gl-native package from source
...
This reverts commit 311bf93abe .
more explicit require paths in tests
2015-11-04 11:34:35 -05:00
John Firebaugh
014b517820
[node] Output debug logs when a render test times out
2015-10-28 15:54:34 -07:00
John Firebaugh
3bbb87c6d7
Update test-suite
2015-10-07 14:05:59 -07:00
John Firebaugh
2066295e35
Install RapidJSON from mason
2015-10-01 11:40:47 -07:00
Mike Morris
a101ab4cf5
[node] throw if a render is already pending, fixes #2247
2015-09-15 13:29:46 -04:00