Andrew
c3a6a5b60a
Move external dependencies to node_modules ( #6028 )
...
* remove sinon from repo and add sinon and karma-sinon devDeps
* remove expect from repo and add karma-expect to devDeps instead
* fix path to sinon and expect in html file for browser testing
* include leaflet-src directly from dist instead of symlink pointing to it
2018-01-29 09:38:05 +04:00
Vladimir Agafonkin
88dd22cfe8
upgrade deps, fix indenting ( #5743 )
2017-08-31 08:58:42 +02:00
Vladimir Agafonkin
957f05da23
fix non-extendable objects regression of 1.1.0
...
Closes #5650 until we figure out a less hacky solution.
2017-07-27 11:03:51 +03:00
Simon Legner
c5f7dc4ad3
ES2015 modules: Add index.js files to subdirectories/namespace ( #5329 )
...
* Add index.js files to subdirectories/namespace
This allows to streamline the import/export in the main file.
* Fix tests by switching to karma-rollup-plugin
2017-02-13 14:14:00 +01:00
Vladimir Agafonkin
703ae02aa8
ES6 modules & Rollup ( #4989 )
...
* WIP ES6 modules & rollup
* WIP ES6 modules & rollup 2
* WIP ES6 modules & rollup 3
* WIP ES6 modules Browser
* WIP ES6 module fixes
* WIP ES6 modules: simpler browser exports
* WIP ES6: refactor CRS/Projection modules, CRS obj -> CRS.Base
* get rid of unnecessary index.js
* WIP ES6 modules, dom events and stuff
* Make linter happy, rollup to dist/
* revert to CRS namespace/class for now
* WIP rollup: export more stuff
* export controls
* rollup: export Layer
* rollup: export DomEvent
* rollup: export more layer types
* rollup: export Popup/Tooltip
* WIP: ES6-ify marker, icon, domutil, draggable.
* ES6-ify gridlayer, tilelayer.
* ES6-ify: Tweak imports-exports, code is now runnable!!
* ES6-ify: Fix scope in some DomUtils
* ES6-ify: Path, fix Popup
* ES6-ify: Lint & cleanup
* ES6-ify map handlers, more linting
* ES6-ify: Icon.Default namespacing
* ES6-ify: Renderers, CircleMarker
* ES6-ify: Circle, Polyline, LineUtil
* ES6-ify: Polygon, Rectangle, LineUtil, PolyUtil, linting
* ES6-ify: SVG.VML
* ES6-ify: DomEvent.Pointer, DomEvent.DoubleTap
* ES6-ify: Linting, make Karma play nice with Rollup
* ES6-ify: More work on fixing bits breaking some unit tests.
* ES6-ify: rollup the version number, fiddled with build scripts
* ES6-ify: Fiddle with test scripts
* ES6-ify: cleanup (refs to global L, imports from (DOM)Util), prevent cyclic loop on Map imports
* ES6-ify: More cleanup of (DOM)Util/Browser/DomEvent imports
* ES6ify: Use rollup's "legacy" option for ES3 (IE8) builds
* ES6-ify: Clean up build scripts, fix CONTRIBUTING.md instructions
* Typo
* ES6-ify: minor fixes and lefovers after rebasing on top of 1.0.2
* ES6-ify: upgrade to rollup 0.38 for proper IE8 builds, fix L.SVG.VML
* Make linter happy.
* ES6: Fixing typos and sxrew-ups after big rebase
* Fix symlink for debugging scripts
* ES6: Cleanup old build scripts
* ES6-ify: Update build system to include git rev in L.version
* ES6-ify: re-enable unit tests replacing L.Path with L.Polyline
* Export Path
* ES6ify: cleanup old banner file
* ES6-ify: whitespace in var declarations
* ES6-ify: Export toTransformation as L.transformation
* ES6-ify: cleanup L.transform exports
* ES6-ify: "import Util" in Transformation and SVG.VML
2017-01-30 11:35:16 +01:00
Yohan Boniface
5dfc3364d1
Allow to make screenshots in Phantomjs ( #4705 )
...
* Load CSS in PhantomJS
* Allow to take screenshot in PhantomJS while running tests
For that, one need to run this call:
window.top.callPhantom({'render': 'screenshot.png'});
* Make PhantomJS serve images
* Bonus: those tests now passe in Phantom too
* Add helper to make screenshot in tests
takeScreenshot();
or
takeScreenshot('path/to/screenshot.png');
2016-07-08 11:05:12 +02:00
Iván Sánchez Ortega
8da61993d2
Added four prosthetic-hand tests, checking mouse&touch drag events and touch-zoom
2016-03-18 15:24:42 +01:00
Yohan Boniface
00b97f3b01
Remove browserNoActivityTimeout from karma config
2015-03-07 23:12:15 +01:00
Yohan Boniface
196040b795
Attempt to fix random PhantomJS DISCONNECTED errors on Travis
2015-03-07 12:45:41 +01:00
Tom MacWright
dc573b768a
Add safari and firefox launchers
2014-10-21 12:21:29 +03:00
Vladimir Agafonkin
2b96ea5aba
make Leaflet.js requirable for version, remove noConflict test
...
Currently tests don’t account for wrapper function around Leaflet
source, so the noConflict one failed — removing for now.
2013-12-26 18:29:46 +02:00
Vladimir Agafonkin
28b26498c6
fix coverage reporting
2013-12-02 19:18:07 +02:00
Vladimir Agafonkin
0d249e34c6
add chrome launcher to karma config
2013-11-10 13:08:48 +02:00
Vladimir Agafonkin
f04527b308
update karma config to work on version 0.10
2013-09-12 13:13:49 +03:00
Vladimir Agafonkin
f91d2d82da
update happen and references to it to fix build, hello @tmcw
2013-09-09 11:47:09 +03:00
John Firebaugh
1b7977a259
Manage happen.js with npm and upgrade it
2013-06-28 14:44:10 -04:00
Vladimir Agafonkin
6009d4ae87
move phantomjs check for touch into Leaflet
...
to allow standalone mocha-phantomjs usage on the browser reporter
2013-04-05 12:32:19 +03:00
John Firebaugh
a950e6873e
Manage mocha dependency with npm; update to 1.9.0
2013-04-03 15:20:15 -07:00
Tom MacWright
a2f7d7e834
Use mocha
2013-04-03 14:50:09 -07:00
John Firebaugh
28daa9e9b1
testacular -> karma
2013-04-03 14:12:51 -07:00