@@ -261,11 +261,11 @@ describe('dropdownToggle', function() {
261
261
it ( 'toggles open class on container' , function ( ) {
262
262
var container = $document . find ( '#dropdown-container' ) ;
263
263
264
- expect ( container . hasClass ( 'open' ) ) . toBe ( false ) ;
264
+ expect ( container . hasClass ( 'uib-dropdown- open' ) ) . toBe ( false ) ;
265
265
element . find ( '[uib-dropdown-toggle]' ) . click ( ) ;
266
- expect ( container . hasClass ( 'open' ) ) . toBe ( true ) ;
266
+ expect ( container . hasClass ( 'uib-dropdown- open' ) ) . toBe ( true ) ;
267
267
element . find ( '[uib-dropdown-toggle]' ) . click ( ) ;
268
- expect ( container . hasClass ( 'open' ) ) . toBe ( false ) ;
268
+ expect ( container . hasClass ( 'uib-dropdown- open' ) ) . toBe ( false ) ;
269
269
} ) ;
270
270
271
271
it ( 'removes the menu when the dropdown is removed' , function ( ) {
@@ -481,11 +481,11 @@ describe('dropdownToggle', function() {
481
481
element = $compile ( '<li uib-dropdown dropdown-append-to-body auto-close="outsideClick"><a href uib-dropdown-toggle></a><ul class="uib-dropdown-menu" id="dropdown-menu"><li><a href>Hello On Body</a></li></ul></li>' ) ( $rootScope ) ;
482
482
clickDropdownToggle ( ) ;
483
483
var dropdownMenu = $document . find ( '#dropdown-menu' ) ;
484
- expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . openClass ) ) . toBe ( true ) ;
484
+ expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . appendToOpenClass ) ) . toBe ( true ) ;
485
485
dropdownMenu . find ( 'li' ) . eq ( 0 ) . trigger ( 'click' ) ;
486
- expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . openClass ) ) . toBe ( true ) ;
486
+ expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . appendToOpenClass ) ) . toBe ( true ) ;
487
487
$document . click ( ) ;
488
- expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . openClass ) ) . toBe ( false ) ;
488
+ expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . appendToOpenClass ) ) . toBe ( false ) ;
489
489
} ) ;
490
490
} ) ;
491
491
@@ -713,7 +713,7 @@ describe('dropdownToggle', function() {
713
713
714
714
var dropdownMenu = $document . find ( '#dropdown-menu' ) ;
715
715
716
- expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . openClass ) ) . toBe ( true ) ;
716
+ expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . appendToOpenClass ) ) . toBe ( true ) ;
717
717
var focusEl = $document . find ( 'ul' ) . eq ( 0 ) . find ( 'a' ) ;
718
718
expect ( isFocused ( focusEl ) ) . toBe ( true ) ;
719
719
} ) ;
@@ -725,7 +725,7 @@ describe('dropdownToggle', function() {
725
725
726
726
var dropdownMenu = $document . find ( '#dropdown-menu' ) ;
727
727
728
- expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . openClass ) ) . toBe ( true ) ;
728
+ expect ( dropdownMenu . parent ( ) . hasClass ( dropdownConfig . appendToOpenClass ) ) . toBe ( true ) ;
729
729
var elem1 = $document . find ( 'ul' ) ;
730
730
var elem2 = elem1 . find ( 'a' ) ;
731
731
var focusEl = $document . find ( 'ul' ) . eq ( 0 ) . find ( 'a' ) . eq ( 1 ) ;
0 commit comments