File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,12 @@ describe('Grid factory', function () {
127
127
}
128
128
} ) ;
129
129
describe ( 'scrollbarHeight and scrollbarWidth' , function ( ) {
130
+ beforeEach ( function ( ) {
131
+ spyOn ( gridUtil , 'getScrollbarWidth' ) . and . returnValue ( 100 ) ;
132
+ } ) ;
133
+ afterEach ( function ( ) {
134
+ gridUtil . getScrollbarWidth . calls . reset ( ) ;
135
+ } ) ;
130
136
describe ( 'when enableHorizontalScrollbar not equal to NEVER' , function ( ) {
131
137
it ( 'should set scrollbarHeight and scrollbarWidth' , function ( ) {
132
138
var grid = new Grid ( {
@@ -135,8 +141,8 @@ describe('Grid factory', function () {
135
141
enableVerticalScrollbar : uiGridConstants . scrollbars . ALWAYS
136
142
} ) ;
137
143
138
- expect ( grid . scrollbarHeight ) . not . toEqual ( 0 ) ;
139
- expect ( grid . scrollbarWidth ) . not . toEqual ( 0 ) ;
144
+ expect ( grid . scrollbarHeight ) . toEqual ( 100 ) ;
145
+ expect ( grid . scrollbarWidth ) . toEqual ( 100 ) ;
140
146
} ) ;
141
147
} ) ;
142
148
describe ( 'when enableHorizontalScrollbar is equal to NEVER' , function ( ) {
You can’t perform that action at this time.
0 commit comments