Skip to content

Commit db26953

Browse files
committed
debugging ios8
1 parent 5b0ad1d commit db26953

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 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,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');

0 commit comments

Comments
 (0)