mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 21:17:55 +08:00
remove select append selectedIndex test case
This commit is contained in:
parent
2a64b8a356
commit
87820e9fbd
@ -189,27 +189,6 @@ describe('Directive v-model select', () => {
|
||||
}).then(done)
|
||||
})
|
||||
|
||||
it('select persist non-selected on append', function () {
|
||||
const vm = new Vue({
|
||||
data: {
|
||||
test: null
|
||||
},
|
||||
template:
|
||||
'<select v-model="test">' +
|
||||
'<option>a</option>' +
|
||||
'<option>b</option>' +
|
||||
'<option>c</option>' +
|
||||
'</select>'
|
||||
}).$mount()
|
||||
document.body.appendChild(vm.$el)
|
||||
expect(vm.$el.value).toBe('')
|
||||
expect(vm.$el.selectedIndex).toBe(-1)
|
||||
document.body.removeChild(vm.$el)
|
||||
document.body.appendChild(vm.$el)
|
||||
expect(vm.$el.value).toBe('')
|
||||
expect(vm.$el.selectedIndex).toBe(-1)
|
||||
})
|
||||
|
||||
it('should warn inline selected', () => {
|
||||
const vm = new Vue({
|
||||
data: {
|
||||
|
Loading…
Reference in New Issue
Block a user