@@ -169,7 +169,7 @@ describe('MdDialog', () => {
169169
170170 let overlayPane = overlayContainerElement . querySelector ( '.md-overlay-pane' ) as HTMLElement ;
171171
172- expect ( overlayPane . style . top ) . toBe ( '100px' ) ;
172+ expect ( overlayPane . style . marginTop ) . toBe ( '100px' ) ;
173173 } ) ;
174174
175175 it ( 'should should override the bottom offset of the overlay pane' , ( ) => {
@@ -183,7 +183,7 @@ describe('MdDialog', () => {
183183
184184 let overlayPane = overlayContainerElement . querySelector ( '.md-overlay-pane' ) as HTMLElement ;
185185
186- expect ( overlayPane . style . bottom ) . toBe ( '200px' ) ;
186+ expect ( overlayPane . style . marginBottom ) . toBe ( '200px' ) ;
187187 } ) ;
188188
189189 it ( 'should should override the left offset of the overlay pane' , ( ) => {
@@ -197,7 +197,7 @@ describe('MdDialog', () => {
197197
198198 let overlayPane = overlayContainerElement . querySelector ( '.md-overlay-pane' ) as HTMLElement ;
199199
200- expect ( overlayPane . style . left ) . toBe ( '250px' ) ;
200+ expect ( overlayPane . style . marginLeft ) . toBe ( '250px' ) ;
201201 } ) ;
202202
203203 it ( 'should should override the right offset of the overlay pane' , ( ) => {
@@ -211,7 +211,7 @@ describe('MdDialog', () => {
211211
212212 let overlayPane = overlayContainerElement . querySelector ( '.md-overlay-pane' ) as HTMLElement ;
213213
214- expect ( overlayPane . style . right ) . toBe ( '125px' ) ;
214+ expect ( overlayPane . style . marginRight ) . toBe ( '125px' ) ;
215215 } ) ;
216216
217217 describe ( 'disableClose option' , ( ) => {
0 commit comments