Leaflet/spec/suites/core/GeneralSpec.js
Per Liedman b23d83f464 Don't turn enter keypress into clicks on map (#5507)
* Don't turn enter keypress into clicks on map

But still preserve functionality to open marker's popup through
enter keypress when focused.

Fixes #5499.

* Clean code

Thanks @egoroof

* Change name of keypress handler to _onKeyPress

* Add unit test
2017-06-02 11:18:46 +02:00

12 lines
188 B
JavaScript

describe('General', function () {
describe('noConflict', function () {
var leaflet = L;
after(function () {
L = leaflet;
});
expect(L.noConflict()).to.eql(leaflet);
});
});