remove select append selectedIndex test case

This commit is contained in:
Evan You 2016-05-26 23:54:06 -04:00
parent 2a64b8a356
commit 87820e9fbd

View File

@ -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: {