@@ -3537,7 +3537,6 @@ describe('$compile', function() {
3537
3537
owRefAlias : '< owRef' ,
3538
3538
owOptref : '<?' ,
3539
3539
owOptrefAlias : '<? owOptref' ,
3540
- owOptreference : '<?' ,
3541
3540
owColref : '<*' ,
3542
3541
owColrefAlias : '<* owColref' ,
3543
3542
expr : '&' ,
@@ -4134,17 +4133,15 @@ describe('$compile', function() {
4134
4133
test ( 'null' , null ) ;
4135
4134
test ( 'undefined' , undefined ) ;
4136
4135
test ( "'someString'" , 'someString' ) ;
4137
-
4136
+ test ( 'true' , true ) ;
4138
4137
4139
4138
function test ( literalString , literalValue ) {
4140
4139
compile ( '<div><span my-component reference="' + literalString + '">' ) ;
4141
4140
4142
4141
$rootScope . $apply ( ) ;
4143
4142
expect ( componentScope . reference ) . toBe ( literalValue ) ;
4144
4143
dealoc ( element ) ;
4145
-
4146
4144
}
4147
-
4148
4145
} ) ) ;
4149
4146
4150
4147
} ) ;
@@ -4332,7 +4329,7 @@ describe('$compile', function() {
4332
4329
} ) ) ;
4333
4330
4334
4331
4335
- it ( 'should not throw on non assignable changes ' , inject ( function ( ) {
4332
+ it ( 'should not throw on non assignable expressions in the parent ' , inject ( function ( ) {
4336
4333
compile ( '<div><span my-component ow-ref="\'hello \' + name">' ) ;
4337
4334
$rootScope . name = 'world' ;
4338
4335
$rootScope . $apply ( ) ;
@@ -4367,7 +4364,8 @@ describe('$compile', function() {
4367
4364
var isolateScope = element . isolateScope ( ) ;
4368
4365
expect ( isolateScope . owRef ) . toBeNaN ( ) ;
4369
4366
4370
- $rootScope . $apply ( function ( scope ) { scope . num = 64 ; } ) ;
4367
+ $rootScope . num = 64 ;
4368
+ $rootScope . $apply ( ) ;
4371
4369
expect ( isolateScope . owRef ) . toBe ( 64 ) ;
4372
4370
} ) ) ;
4373
4371
@@ -4397,23 +4395,24 @@ describe('$compile', function() {
4397
4395
} ) ) ;
4398
4396
4399
4397
4400
- it ( 'should not complain when the component changes' , inject ( function ( ) {
4398
+ iit ( 'should not complain when the isolated scope changes' , inject ( function ( ) {
4401
4399
compile ( '<div><span my-component ow-ref="{name: name}">' ) ;
4402
4400
4403
4401
$rootScope . name = 'a' ;
4404
4402
$rootScope . $apply ( ) ;
4405
4403
componentScope . owRef = { name : 'b' } ;
4406
4404
componentScope . $apply ( ) ;
4405
+
4407
4406
expect ( componentScope . owRef ) . toEqual ( { name : 'b' } ) ;
4408
4407
expect ( $rootScope . name ) . toBe ( 'a' ) ;
4409
4408
} ) ) ;
4410
4409
4411
-
4412
- it ( 'should work for primitive literals' , inject ( function ( ) {
4410
+ iit ( 'should work for primitive literals' , inject ( function ( ) {
4413
4411
test ( '1' , 1 ) ;
4414
4412
test ( 'null' , null ) ;
4415
4413
test ( 'undefined' , undefined ) ;
4416
4414
test ( "'someString'" , 'someString' ) ;
4415
+ test ( 'true' , true ) ;
4417
4416
4418
4417
function test ( literalString , literalValue ) {
4419
4418
compile ( '<div><span my-component ow-ref="' + literalString + '">' ) ;
@@ -4446,7 +4445,6 @@ describe('$compile', function() {
4446
4445
4447
4446
expect ( componentScope . owOptref ) . toBe ( undefined ) ;
4448
4447
expect ( componentScope . owOptrefAlias ) . toBe ( undefined ) ;
4449
- expect ( componentScope . owOptreference ) . toBe ( undefined ) ;
4450
4448
} ) ) ;
4451
4449
} ) ;
4452
4450
0 commit comments