@@ -86,7 +86,7 @@ describe('uiGridCell', function () {
86
86
} ) ) ;
87
87
} ) ;
88
88
89
- it ( 'should change a columns class when its uid changes' , inject ( function ( gridUtil , $compile , uiGridConstants ) {
89
+ iit ( 'should change a columns class when its uid changes' , inject ( function ( gridUtil , $compile , uiGridConstants ) {
90
90
// Reset the UIDs (used by columns) so they're fresh and clean
91
91
gridUtil . resetUids ( ) ;
92
92
@@ -110,7 +110,7 @@ describe('uiGridCell', function () {
110
110
var firstCol = $ ( gridElm ) . find ( '.ui-grid-cell' ) . first ( ) ;
111
111
var firstHeaderCell = $ ( gridElm ) . find ( '.ui-grid-header-cell' ) . first ( ) ;
112
112
var classRegEx = new RegExp ( '^' + uiGridConstants . COL_CLASS_PREFIX ) ;
113
- var class1 = _ ( firstCol [ 0 ] . classList ) . find ( function ( c ) { return classRegEx . test ( c ) ; } ) ;
113
+ var class1 = _ ( firstCol [ 0 ] . className . split ( / \s + / ) ) . find ( function ( c ) { return classRegEx . test ( c ) ; } ) ;
114
114
115
115
// The first column should be 100px wide because we said it should be
116
116
expect ( firstCol . outerWidth ( ) ) . toEqual ( 100 , 'first cell is 100px' ) ;
@@ -122,7 +122,7 @@ describe('uiGridCell', function () {
122
122
123
123
var firstColAgain = $ ( gridElm ) . find ( '.ui-grid-cell' ) . first ( ) ;
124
124
var firstHeaderCellAgain = $ ( gridElm ) . find ( '.ui-grid-header-cell' ) . first ( ) ;
125
- var class2 = _ ( firstColAgain [ 0 ] . classList ) . find ( function ( c ) { return classRegEx . test ( c ) ; } ) ;
125
+ var class2 = _ ( firstColAgain [ 0 ] . className . split ( / \s + / ) ) . find ( function ( c ) { return classRegEx . test ( c ) ; } ) ;
126
126
127
127
// The column root classes should have changed
128
128
expect ( class2 ) . not . toEqual ( class1 ) ;
0 commit comments