@@ -11,7 +11,7 @@ import {
11
11
OverlayContainer ,
12
12
OverlayModule ,
13
13
OverlayRef ,
14
- OverlayState ,
14
+ OverlayConfig ,
15
15
PositionStrategy ,
16
16
ScrollStrategy ,
17
17
} from './index' ;
@@ -133,7 +133,7 @@ describe('Overlay', () => {
133
133
} ) ;
134
134
135
135
it ( 'should set the direction' , ( ) => {
136
- const state = new OverlayState ( { direction : 'rtl' } ) ;
136
+ const state = new OverlayConfig ( { direction : 'rtl' } ) ;
137
137
138
138
overlay . create ( state ) . attach ( componentPortal ) ;
139
139
@@ -152,7 +152,7 @@ describe('Overlay', () => {
152
152
} ) ;
153
153
154
154
it ( 'should emit the attachment event after everything is added to the DOM' , ( ) => {
155
- let state = new OverlayState ( { hasBackdrop : true } ) ;
155
+ let state = new OverlayConfig ( { hasBackdrop : true } ) ;
156
156
let overlayRef = overlay . create ( state ) ;
157
157
158
158
overlayRef . attachments ( ) . subscribe ( ( ) => {
@@ -220,10 +220,10 @@ describe('Overlay', () => {
220
220
} ) ;
221
221
222
222
describe ( 'positioning' , ( ) => {
223
- let state : OverlayState ;
223
+ let state : OverlayConfig ;
224
224
225
225
beforeEach ( ( ) => {
226
- state = new OverlayState ( ) ;
226
+ state = new OverlayConfig ( ) ;
227
227
} ) ;
228
228
229
229
it ( 'should apply the positioning strategy' , ( ) => {
@@ -236,10 +236,10 @@ describe('Overlay', () => {
236
236
} ) ;
237
237
238
238
describe ( 'size' , ( ) => {
239
- let state : OverlayState ;
239
+ let state : OverlayConfig ;
240
240
241
241
beforeEach ( ( ) => {
242
- state = new OverlayState ( ) ;
242
+ state = new OverlayConfig ( ) ;
243
243
} ) ;
244
244
245
245
it ( 'should apply the width set in the config' , ( ) => {
@@ -320,10 +320,10 @@ describe('Overlay', () => {
320
320
} ) ;
321
321
322
322
describe ( 'backdrop' , ( ) => {
323
- let config : OverlayState ;
323
+ let config : OverlayConfig ;
324
324
325
325
beforeEach ( ( ) => {
326
- config = new OverlayState ( ) ;
326
+ config = new OverlayConfig ( ) ;
327
327
config . hasBackdrop = true ;
328
328
} ) ;
329
329
@@ -411,7 +411,7 @@ describe('Overlay', () => {
411
411
412
412
describe ( 'panelClass' , ( ) => {
413
413
it ( 'should apply a custom overlay pane class' , ( ) => {
414
- const config = new OverlayState ( { panelClass : 'custom-panel-class' } ) ;
414
+ const config = new OverlayConfig ( { panelClass : 'custom-panel-class' } ) ;
415
415
416
416
overlay . create ( config ) . attach ( componentPortal ) ;
417
417
viewContainerFixture . detectChanges ( ) ;
@@ -421,7 +421,7 @@ describe('Overlay', () => {
421
421
} ) ;
422
422
423
423
it ( 'should be able to apply multiple classes' , ( ) => {
424
- const config = new OverlayState ( { panelClass : [ 'custom-class-one' , 'custom-class-two' ] } ) ;
424
+ const config = new OverlayConfig ( { panelClass : [ 'custom-class-one' , 'custom-class-two' ] } ) ;
425
425
426
426
overlay . create ( config ) . attach ( componentPortal ) ;
427
427
viewContainerFixture . detectChanges ( ) ;
@@ -435,12 +435,12 @@ describe('Overlay', () => {
435
435
436
436
describe ( 'scroll strategy' , ( ) => {
437
437
let fakeScrollStrategy : FakeScrollStrategy ;
438
- let config : OverlayState ;
438
+ let config : OverlayConfig ;
439
439
let overlayRef : OverlayRef ;
440
440
441
441
beforeEach ( ( ) => {
442
442
fakeScrollStrategy = new FakeScrollStrategy ( ) ;
443
- config = new OverlayState ( { scrollStrategy : fakeScrollStrategy } ) ;
443
+ config = new OverlayConfig ( { scrollStrategy : fakeScrollStrategy } ) ;
444
444
overlayRef = overlay . create ( config ) ;
445
445
} ) ;
446
446
0 commit comments