@@ -143,7 +143,7 @@ describe('MdGridList', () => {
143
143
} ) ;
144
144
} ) ) ;
145
145
146
- it ( 'should default gutter size to 1px' , async ( ( ) => {
146
+ fit ( 'should default gutter size to 1px' , async ( ( ) => {
147
147
var template = `
148
148
<div style="width:200px">
149
149
<md-grid-list cols="2" rowHeight="100px">
@@ -158,6 +158,25 @@ describe('MdGridList', () => {
158
158
fixture . whenStable ( ) . then ( ( ) => {
159
159
let tiles = fixture . debugElement . queryAll ( By . css ( 'md-grid-tile' ) ) ;
160
160
161
+ console . log ( '### whenStable' ) ;
162
+ console . log ( ' getComputedStyle: ' , getComputedStyle ( tiles [ 1 ] . nativeElement ) . left ) ;
163
+ console . log ( ' style.left: ' , tiles [ 1 ] . nativeElement . style . left ) ;
164
+ console . log ( 'boundingClientRect: ' , tiles [ 1 ] . nativeElement . getBoundingClientRect ( ) . left ) ;
165
+
166
+ setTimeout ( ( ) => {
167
+ console . log ( '### timeout 0' ) ;
168
+ console . log ( ' getComputedStyle: ' , getComputedStyle ( tiles [ 1 ] . nativeElement ) . left ) ;
169
+ console . log ( ' style.left: ' , tiles [ 1 ] . nativeElement . style . left ) ;
170
+ console . log ( 'boundingClientRect: ' , tiles [ 1 ] . nativeElement . getBoundingClientRect ( ) . left ) ;
171
+ } , 0 ) ;
172
+
173
+ setTimeout ( ( ) => {
174
+ console . log ( '### timeout 100' ) ;
175
+ console . log ( ' getComputedStyle: ' , getComputedStyle ( tiles [ 1 ] . nativeElement ) . left ) ;
176
+ console . log ( ' style.left: ' , tiles [ 1 ] . nativeElement . style . left ) ;
177
+ console . log ( 'boundingClientRect: ' , tiles [ 1 ] . nativeElement . getBoundingClientRect ( ) . left ) ;
178
+ } , 100 ) ;
179
+
161
180
// check horizontal gutter
162
181
expect ( getProp ( tiles [ 0 ] , 'width' ) ) . toBe ( '99.5px' ) ;
163
182
expect ( getProp ( tiles [ 1 ] , 'left' ) ) . toBe ( '100.5px' ) ;
0 commit comments