add test case for path higlight
therefore setting opacity of the example path to 0.6
This commit is contained in:
parent
7d6830c7c6
commit
b149a69efd
3 changed files with 9 additions and 1 deletions
|
@ -238,6 +238,12 @@ describe('L.U.FeatureMixin', function () {
|
|||
happen.click(qs('div.leaflet-marker-icon'))
|
||||
assert.ok(qs('.umap-icon-active'))
|
||||
})
|
||||
|
||||
it('should highlight path', function () {
|
||||
happen.click(qs('path[stroke-opacity="0.6"]'))
|
||||
var path = qs('path[stroke-opacity="1"]')
|
||||
assert.ok(path)
|
||||
})
|
||||
})
|
||||
|
||||
describe('#tooltip', function () {
|
||||
|
|
|
@ -64,6 +64,7 @@ describe('L.U.Map.Export', function () {
|
|||
properties: {
|
||||
_umap_options: {
|
||||
fill: false,
|
||||
opacity: 0.6,
|
||||
},
|
||||
name: 'test',
|
||||
},
|
||||
|
@ -187,6 +188,7 @@ describe('L.U.Map.Export', function () {
|
|||
properties: {
|
||||
_umap_options: {
|
||||
fill: false,
|
||||
opacity: 0.6,
|
||||
},
|
||||
name: 'test',
|
||||
},
|
||||
|
|
|
@ -254,7 +254,7 @@ var RESPONSES = {
|
|||
},
|
||||
type: 'Feature',
|
||||
id: 20,
|
||||
properties: { _umap_options: { fill: false }, name: 'test' },
|
||||
properties: { _umap_options: { fill: false, opacity: 0.6 }, name: 'test' },
|
||||
},
|
||||
{
|
||||
geometry: {
|
||||
|
|
Loading…
Reference in a new issue