@@ -60,7 +60,7 @@ describe('Slot Distribution', function () {
60
60
el . innerHTML = '<p slot="t">1</p><div></div><p slot="t">2</p>'
61
61
options . template = '<slot name="t"></slot>'
62
62
mount ( )
63
- expect ( el . innerHTML ) . toBe ( '<p>1</p><p>2</p>' )
63
+ expect ( el . innerHTML ) . toBe ( '<p slot="t" >1</p><p slot="t" >2</p>' )
64
64
} )
65
65
66
66
it ( 'default content should only render parts not selected' , function ( ) {
@@ -70,7 +70,7 @@ describe('Slot Distribution', function () {
70
70
'<slot></slot>' +
71
71
'<slot name="b"></slot>'
72
72
mount ( )
73
- expect ( el . innerHTML ) . toBe ( '<p>1</p><div>hi</div><p>2</p>' )
73
+ expect ( el . innerHTML ) . toBe ( '<p slot="a" >1</p><div>hi</div><p slot="b" >2</p>' )
74
74
} )
75
75
76
76
it ( 'content transclusion with replace' , function ( ) {
@@ -126,7 +126,7 @@ describe('Slot Distribution', function () {
126
126
theName : 'two'
127
127
}
128
128
mount ( )
129
- expect ( el . innerHTML ) . toBe ( '<p>two</p>' )
129
+ expect ( el . innerHTML ) . toBe ( '<p slot="two" >two</p>' )
130
130
} )
131
131
132
132
it ( 'content should be dynamic and compiled in parent scope' , function ( done ) {
@@ -194,7 +194,7 @@ describe('Slot Distribution', function () {
194
194
this . list = this . $options . _content . querySelectorAll ( 'p' ) . length
195
195
}
196
196
} )
197
- expect ( el . innerHTML ) . toBe ( '<div><p>1</p></div><div><p>2</p></div><div><p>3</p></div>' )
197
+ expect ( el . innerHTML ) . toBe ( '<div><p slot="1" >1</p></div><div><p slot="2" >2</p></div><div><p slot="3" >3</p></div>' )
198
198
} )
199
199
200
200
it ( 'v-for + component + parent directive + transclusion' , function ( done ) {
0 commit comments