@@ -51,7 +51,7 @@ describe('Compile', function () {
51
51
52
52
it ( 'normal directives' , function ( ) {
53
53
el . setAttribute ( 'v-a' , 'b' )
54
- el . innerHTML = '<p v-a:hello.a.b="a" v-b="1">hello</p><div v-b.literal="hi "></div>'
54
+ el . innerHTML = '<p v-a:hello.a.b="a" v-b="1">hello</p><div v-b.literal="foo "></div>'
55
55
var defA = { priority : 1 }
56
56
var defB = { priority : 2 }
57
57
var options = _ . mergeOptions ( Vue . options , {
@@ -95,7 +95,7 @@ describe('Compile', function () {
95
95
// 4 (explicit literal)
96
96
args = vm . _bindDir . calls . argsFor ( 3 )
97
97
expect ( args [ 0 ] . name ) . toBe ( 'b' )
98
- expect ( args [ 0 ] . expression ) . toBe ( 'hi ' )
98
+ expect ( args [ 0 ] . expression ) . toBe ( 'foo ' )
99
99
expect ( args [ 0 ] . def ) . toBe ( defB )
100
100
expect ( args [ 0 ] . modifiers . literal ) . toBe ( true )
101
101
expect ( args [ 1 ] ) . toBe ( el . lastChild )
@@ -219,7 +219,7 @@ describe('Compile', function () {
219
219
} )
220
220
221
221
it ( 'inline html' , function ( ) {
222
- data . html = '<div>yoyoyo </div>'
222
+ data . html = '<div>foo </div>'
223
223
el . innerHTML = '{{{html}}} {{{*html}}}'
224
224
var htmlDef = Vue . options . directives . html
225
225
var linker = compile ( el , Vue . options )
@@ -230,7 +230,7 @@ describe('Compile', function () {
230
230
expect ( htmlArgs [ 0 ] . expression ) . toBe ( 'html' )
231
231
expect ( htmlArgs [ 0 ] . def ) . toBe ( htmlDef )
232
232
// with placeholder comments & interpolated one-time html
233
- expect ( el . innerHTML ) . toBe ( '<!--v-html--> <div>yoyoyo </div>' )
233
+ expect ( el . innerHTML ) . toBe ( '<!--v-html--> <div>foo </div>' )
234
234
} )
235
235
236
236
it ( 'terminal directives' , function ( ) {
@@ -334,7 +334,7 @@ describe('Compile', function () {
334
334
':test-two-way.sync="a" ' +
335
335
':two-way-warn.sync="a + 1" ' +
336
336
':test-one-time.once="a" ' +
337
- ':literal-with-filter="\'HI \' | lowercase"' +
337
+ ':literal-with-filter="\'FOO \' | lowercase"' +
338
338
'></div>'
339
339
compiler . compileAndLinkProps ( vm , el . firstChild , props )
340
340
// check bindDir calls:
@@ -369,7 +369,7 @@ describe('Compile', function () {
369
369
prop = args [ 0 ] . prop
370
370
expect ( args [ 0 ] . name ) . toBe ( 'prop' )
371
371
expect ( prop . path ) . toBe ( 'literalWithFilter' )
372
- expect ( prop . parentPath ) . toBe ( "'HI '" )
372
+ expect ( prop . parentPath ) . toBe ( "'FOO '" )
373
373
expect ( prop . filters . length ) . toBe ( 1 )
374
374
expect ( prop . mode ) . toBe ( bindingModes . ONE_WAY )
375
375
} )
@@ -378,11 +378,11 @@ describe('Compile', function () {
378
378
// temporarily remove vm.$parent
379
379
var context = vm . _context
380
380
vm . _context = null
381
- el . setAttribute ( 'v-bind:a' , '"hi "' )
381
+ el . setAttribute ( 'v-bind:a' , '"foo "' )
382
382
el . setAttribute ( ':b' , '[1,2,3]' )
383
383
compiler . compileAndLinkProps ( vm , el , { a : null , b : null } )
384
384
expect ( vm . _bindDir . calls . count ( ) ) . toBe ( 0 )
385
- expect ( vm . a ) . toBe ( 'hi ' )
385
+ expect ( vm . a ) . toBe ( 'foo ' )
386
386
expect ( vm . b . join ( ',' ) ) . toBe ( '1,2,3' )
387
387
// restore parent mock
388
388
vm . _context = context
@@ -453,7 +453,7 @@ describe('Compile', function () {
453
453
el : el ,
454
454
template : '<test :msg="msg"></test>' ,
455
455
data : {
456
- msg : 'hi '
456
+ msg : 'foo '
457
457
} ,
458
458
components : {
459
459
test : {
@@ -482,7 +482,7 @@ describe('Compile', function () {
482
482
} ,
483
483
components : {
484
484
test : {
485
- template : 'hi '
485
+ template : 'foo '
486
486
}
487
487
}
488
488
} )
@@ -629,7 +629,7 @@ describe('Compile', function () {
629
629
el : el ,
630
630
template : '<div class="{{a}}" :class="bcd"></div>' ,
631
631
data : {
632
- a : 'hi '
632
+ a : 'foo '
633
633
}
634
634
} )
635
635
expect ( 'Do not mix mustache interpolation and v-bind' ) . toHaveBeenWarned ( )
@@ -638,7 +638,7 @@ describe('Compile', function () {
638
638
it ( 'warn directives on fragment instances' , function ( ) {
639
639
new Vue ( {
640
640
el : el ,
641
- template : '<test id="hi " class="ok" :prop="123"></test>' ,
641
+ template : '<test id="foo " class="ok" :prop="123"></test>' ,
642
642
components : {
643
643
test : {
644
644
replace : true ,
0 commit comments