add testcase for marker highlight
This commit is contained in:
parent
65ba1cd3ee
commit
5778c4ff65
1 changed files with 10 additions and 0 deletions
|
@ -223,6 +223,16 @@ describe('L.U.FeatureMixin', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('#highlight()', function () {
|
||||||
|
it('should highlight marker on click', function () {
|
||||||
|
assert.notOk(qs('.umap-icon-active'))
|
||||||
|
happen.click(qs('div.leaflet-marker-icon'))
|
||||||
|
assert.ok(qs('.umap-icon-active'))
|
||||||
|
happen.click(qs('#map')) // Close popup
|
||||||
|
assert.notOk(qs('.umap-icon-active'))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('#tooltip', function () {
|
describe('#tooltip', function () {
|
||||||
it('should have a tooltip when active and allow variables', function () {
|
it('should have a tooltip when active and allow variables', function () {
|
||||||
this.map.options.showLabel = true
|
this.map.options.showLabel = true
|
||||||
|
|
Loading…
Reference in a new issue