Explorar o código

remove select append selectedIndex test case

Evan You %!s(int64=10) %!d(string=hai) anos
pai
achega
87820e9fbd
Modificáronse 1 ficheiros con 0 adicións e 21 borrados
  1. 0 21
      test/unit/features/directives/model-select.spec.js

+ 0 - 21
test/unit/features/directives/model-select.spec.js

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