File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ describe('MdGridList', () => {
143143 } ) ;
144144 } ) ) ;
145145
146- it ( 'should default gutter size to 1px' , async ( ( ) => {
146+ fit ( 'should default gutter size to 1px' , async ( ( ) => {
147147 var template = `
148148 <div style="width:200px">
149149 <md-grid-list cols="2" rowHeight="100px">
@@ -158,6 +158,14 @@ describe('MdGridList', () => {
158158 fixture . whenStable ( ) . then ( ( ) => {
159159 let tiles = fixture . debugElement . queryAll ( By . css ( 'md-grid-tile' ) ) ;
160160
161+ //console.log(getComputedStyle(tiles[1].nativeElement));
162+
163+ console . log ( '### whenStable' ) ;
164+ console . log ( ' getComputedStyle: ' , getComputedStyle ( tiles [ 1 ] . nativeElement ) . left ) ;
165+ console . log ( ' style.left: ' , tiles [ 1 ] . nativeElement . style . left ) ;
166+ console . log ( 'boundingClientRect: ' , tiles [ 1 ] . nativeElement . getBoundingClientRect ( ) . left ) ;
167+ console . log ( 'boundingClientRect: ' , tiles [ 1 ] . nativeElement . offsetLeft ) ;
168+
161169 // check horizontal gutter
162170 expect ( getProp ( tiles [ 0 ] , 'width' ) ) . toBe ( '99.5px' ) ;
163171 expect ( getProp ( tiles [ 1 ] , 'left' ) ) . toBe ( '100.5px' ) ;
You can’t perform that action at this time.
0 commit comments