@@ -219,7 +219,12 @@ class ElementDataSource extends DataSource<PeriodicElement> {
219219 <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
220220 </mat-table>
221221 </div>
222- `
222+ ` ,
223+ styles : [ `
224+ mat-table {
225+ margin: 16px;
226+ }
227+ ` ]
223228} )
224229class MatFlexTableInCell extends BaseTestComponent {
225230 displayedColumns = [ 'before' , 'name' , 'weight' ] ;
@@ -265,7 +270,12 @@ class MatFlexTableInCell extends BaseTestComponent {
265270 <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
266271 </table>
267272 <div>
268- `
273+ ` ,
274+ styles : [ `
275+ table {
276+ margin: 24px;
277+ }
278+ ` ]
269279} )
270280class MatTableInCell extends BaseTestComponent {
271281 displayedColumns = [ 'before' , 'name' , 'weight' ] ;
@@ -274,7 +284,7 @@ class MatTableInCell extends BaseTestComponent {
274284
275285const testCases : ReadonlyArray < [ Type < BaseTestComponent > , string ] > = [
276286 [ MatFlexTableInCell , 'Flex mat-table; edit defined within cell' ] ,
277- [ MatTableInCell , 'Table mat-table; edit defined within cell' ] ,
287+ // [MatTableInCell, 'Table mat-table; edit defined within cell'],
278288] ;
279289
280290describe ( 'Material Popover Edit' , ( ) => {
@@ -588,7 +598,7 @@ matPopoverEditTabOut`, fakeAsync(() => {
588598 clearLeftoverTimers ( ) ;
589599 } ) ) ;
590600
591- it ( 'adjusts the positioning of the lens based on colspan' , fakeAsync ( ( ) => {
601+ fit ( 'adjusts the positioning of the lens based on colspan' , fakeAsync ( ( ) => {
592602 const cellRects = getCells ( getRows ( component . table . nativeElement ) [ 0 ] )
593603 . map ( cell => cell . getBoundingClientRect ( ) ) ;
594604
@@ -598,6 +608,8 @@ matPopoverEditTabOut`, fakeAsync(() => {
598608 component . openLens ( ) ;
599609
600610 let paneRect = component . getEditPane ( ) ! . getBoundingClientRect ( ) ;
611+ console . log ( paneRect . top ) ;
612+ console . log ( cellRects ) ;
601613 expectPixelsToEqual ( paneRect . top , cellRects [ 0 ] . top ) ;
602614 expectPixelsToEqual ( paneRect . left , cellRects [ 0 ] . left ) ;
603615 expectPixelsToEqual ( paneRect . right , cellRects [ 1 ] . right ) ;
@@ -609,6 +621,10 @@ matPopoverEditTabOut`, fakeAsync(() => {
609621 expectPixelsToEqual ( paneRect . top , cellRects [ 1 ] . top ) ;
610622 expectPixelsToEqual ( paneRect . left , cellRects [ 1 ] . left ) ;
611623 expectPixelsToEqual ( paneRect . right , cellRects [ 2 ] . right ) ;
624+ console . log ( 'Pane:' , component . getEditPane ( ) ) ;
625+ console . log ( 'Cells' , cellRects ) ;
626+ console . log ( paneRect . right , cellRects [ 2 ] . right ) ;
627+ debugger ;
612628
613629 component . colspan = { before : 1 , after : 1 } ;
614630 fixture . detectChanges ( ) ;
0 commit comments