This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ describe('ui-select tests', function() {
128
128
if ( attrs . appendToBody !== undefined ) { attrsHtml += ' append-to-body="' + attrs . appendToBody + '"' ; }
129
129
if ( attrs . allowClear !== undefined ) { matchAttrsHtml += ' allow-clear="' + attrs . allowClear + '"' ; }
130
130
if ( attrs . inputId !== undefined ) { attrsHtml += ' input-id="' + attrs . inputId + '"' ; }
131
+ if ( attrs . ngClass !== undefined ) { attrsHtml += ' ng-class="' + attrs . ngClass + '"' ; }
131
132
}
132
133
133
134
return compileTemplate (
@@ -375,6 +376,14 @@ describe('ui-select tests', function() {
375
376
expect ( getMatchLabel ( el ) ) . toEqual ( 'Adam' ) ;
376
377
} ) ;
377
378
379
+ it ( 'should merge both ng-class attributes defined on ui-select and its templates' , function ( ) {
380
+ var el = createUiSelect ( {
381
+ ngClass : "{class: expression}"
382
+ } ) ;
383
+
384
+ expect ( $ ( el ) . attr ( 'ng-class' ) ) . toEqual ( "{class: expression, open: $select.open}" ) ;
385
+ } ) ;
386
+
378
387
it ( 'should correctly render initial state with track by feature' , function ( ) {
379
388
var el = compileTemplate (
380
389
'<ui-select ng-model="selection.selected"> \
You can’t perform that action at this time.
0 commit comments