Skip to content

Commit 9046c64

Browse files
committed
debugging ios8
1 parent 5b0ad1d commit 9046c64

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/components/grid-list/grid-list.spec.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff 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,25 @@ describe('MdGridList', () => {
158158
fixture.whenStable().then(() => {
159159
let tiles = fixture.debugElement.queryAll(By.css('md-grid-tile'));
160160

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+
161180
// check horizontal gutter
162181
expect(getProp(tiles[0], 'width')).toBe('99.5px');
163182
expect(getProp(tiles[1], 'left')).toBe('100.5px');

0 commit comments

Comments
 (0)