test that overrideProperty is not overwritten
This commit is contained in:
parent
b575055d7e
commit
bcce7aff18
1 changed files with 1 additions and 1 deletions
|
@ -449,6 +449,6 @@ describe('MenuItem with custom properties in constructor', function () {
|
||||||
assert.equal(menu.items[0].customProp, 'foo')
|
assert.equal(menu.items[0].customProp, 'foo')
|
||||||
assert.equal(menu.items[0].submenu.items[0].label, 'item 1')
|
assert.equal(menu.items[0].submenu.items[0].label, 'item 1')
|
||||||
assert.equal(menu.items[0].submenu.items[0].customProp, 'bar')
|
assert.equal(menu.items[0].submenu.items[0].customProp, 'bar')
|
||||||
assert.notEqual(typeof menu.items[0].submenu.items[0].overrideProperty, 'string')
|
assert.equal(typeof menu.items[0].submenu.items[0].overrideProperty, 'function')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue