@@ -430,7 +430,7 @@ describe('ConnectedPositionStrategy', () => {
430
430
}
431
431
} ) ;
432
432
433
- describe ( 'onPositionChange with scrollable view properties' , ( ) => {
433
+ fdescribe ( 'onPositionChange with scrollable view properties' , ( ) => {
434
434
let overlayElement : HTMLElement ;
435
435
let strategy : ConnectedPositionStrategy ;
436
436
@@ -447,9 +447,7 @@ describe('ConnectedPositionStrategy', () => {
447
447
overlayContainerElement . appendChild ( overlayElement ) ;
448
448
449
449
// Set up the origin
450
- let originElement = createPositionedBlockElement ( ) ;
451
- originElement . style . top = '0' ;
452
- originElement . style . left = '0' ;
450
+ let originElement = createBlockElement ( ) ;
453
451
originElement . style . margin = '0 1000px 1000px 0' ; // Added so that the container scrolls
454
452
455
453
// Create a scrollable container and put the origin inside
@@ -534,10 +532,16 @@ describe('ConnectedPositionStrategy', () => {
534
532
535
533
/** Creates an absolutely positioned, display: block element with a default size. */
536
534
function createPositionedBlockElement ( ) {
537
- let element = document . createElement ( 'div' ) ;
535
+ let element = createBlockElement ( ) ;
538
536
element . style . position = 'absolute' ;
539
537
element . style . top = '0' ;
540
538
element . style . left = '0' ;
539
+ return element ;
540
+ }
541
+
542
+ /** Creates a block element with a default size. */
543
+ function createBlockElement ( ) {
544
+ let element = document . createElement ( 'div' ) ;
541
545
element . style . width = `${ DEFAULT_WIDTH } px` ;
542
546
element . style . height = `${ DEFAULT_HEIGHT } px` ;
543
547
element . style . backgroundColor = 'rebeccapurple' ;
0 commit comments