@@ -19,7 +19,7 @@ describe('Async components', function () {
19
19
it ( 'normal' , function ( done ) {
20
20
var vm = new Vue ( {
21
21
el : el ,
22
- template : '<div v-component=" test" ></div >' ,
22
+ template : '<test></test >' ,
23
23
components : {
24
24
test : function ( resolve ) {
25
25
setTimeout ( function ( ) {
@@ -40,7 +40,7 @@ describe('Async components', function () {
40
40
it ( 'dynamic' , function ( done ) {
41
41
var vm = new Vue ( {
42
42
el : el ,
43
- template : '<div v- component="{{view}}"></div >' ,
43
+ template : '<component type ="{{view}}"></component >' ,
44
44
data : {
45
45
view : 'a'
46
46
} ,
@@ -84,7 +84,7 @@ describe('Async components', function () {
84
84
it ( 'invalidate pending on dynamic switch' , function ( done ) {
85
85
var vm = new Vue ( {
86
86
el : el ,
87
- template : '<div v- component="{{view}}"></div >' ,
87
+ template : '<component type ="{{view}}"></component >' ,
88
88
data : {
89
89
view : 'a'
90
90
} ,
@@ -124,12 +124,12 @@ describe('Async components', function () {
124
124
it ( 'invalidate pending on teardown' , function ( done ) {
125
125
var vm = new Vue ( {
126
126
el : el ,
127
- template : '<div v-component="a" ></div >' ,
127
+ template : '<test ></test >' ,
128
128
data : {
129
129
view : 'a'
130
130
} ,
131
131
components : {
132
- a : function ( resolve ) {
132
+ test : function ( resolve ) {
133
133
setTimeout ( function ( ) {
134
134
resolve ( {
135
135
template : 'A'
@@ -157,10 +157,10 @@ describe('Async components', function () {
157
157
var vm = new Vue ( {
158
158
el : el ,
159
159
template :
160
- '<div v-component="a" ></div >' +
161
- '<div v-component="a" ></div >' ,
160
+ '<test ></test >' +
161
+ '<test ></test >' ,
162
162
components : {
163
- a : factory
163
+ test : factory
164
164
}
165
165
} )
166
166
function factory ( resolve ) {
@@ -192,7 +192,7 @@ describe('Async components', function () {
192
192
it ( 'normal' , function ( done ) {
193
193
var vm = new Vue ( {
194
194
el : el ,
195
- template : '<div v-repeat="list" v-component="test" ></div >' ,
195
+ template : '<test v-repeat="list"></test >' ,
196
196
data : {
197
197
list : [ 1 , 2 , 3 ]
198
198
} ,
@@ -216,7 +216,7 @@ describe('Async components', function () {
216
216
it ( 'only resolve once' , function ( done ) {
217
217
var vm = new Vue ( {
218
218
el : el ,
219
- template : '<div v-repeat="list" v-component="test" ></div >' ,
219
+ template : '<test v-repeat="list"></test >' ,
220
220
data : {
221
221
list : [ 1 , 2 , 3 ]
222
222
} ,
@@ -250,7 +250,7 @@ describe('Async components', function () {
250
250
it ( 'invalidate on teardown' , function ( done ) {
251
251
var vm = new Vue ( {
252
252
el : el ,
253
- template : '<div v-repeat="list" v-component="test" ></div >' ,
253
+ template : '<test v-repeat="list"></test >' ,
254
254
data : {
255
255
list : [ 1 , 2 , 3 ]
256
256
} ,
@@ -277,7 +277,7 @@ describe('Async components', function () {
277
277
it ( 'warn when used with dynamic v-repeat' , function ( ) {
278
278
var vm = new Vue ( {
279
279
el : el ,
280
- template : '<div v-repeat="list" v-component ="{{c}}"></div >' ,
280
+ template : '<component v-repeat="list" type ="{{c}}"></component >' ,
281
281
data : {
282
282
list : [ 1 , 2 , 3 ] ,
283
283
c : 'test'
0 commit comments