()
| 605 | |
| 606 | it('should not clear the range when pressing escape while there is no preview', () => { |
| 607 | const getRangeElements = () => |
| 608 | monthViewNativeElement.querySelectorAll( |
| 609 | [ |
| 610 | '.mat-calendar-body-range-start', |
| 611 | '.mat-calendar-body-in-range', |
| 612 | '.mat-calendar-body-range-end', |
| 613 | ].join(','), |
| 614 | ); |
| 615 | |
| 616 | testComponent.selected = new DateRange( |
| 617 | new Date(2017, JAN, 10), |