Commit 6e30368
test: ignore test failures in popover-edit due to minor subpixel deviations
A small set of popover-edit tests relies on the bounding client rect.
Assertions that the panel stretches over the first and last cell are
correct but require an exact equality. This is not reliable as in some
situations, browsers handle subpixels differently, resulting in
small deviations in the bounding client rect positions. These
differences are only noticeable less significant decimal places, but
the overall assertion matches full pixels. This is sufficient for these
tests so we just round all measurements/comparisons to full pixels.1 parent d2f7195 commit 6e30368
File tree
2 files changed
+33
-25
lines changed- src
- cdk-experimental/popover-edit
- material-experimental/popover-edit
2 files changed
+33
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
686 | 690 | | |
687 | 691 | | |
688 | 692 | | |
| |||
697 | 701 | | |
698 | 702 | | |
699 | 703 | | |
700 | | - | |
701 | | - | |
702 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
| |||
713 | 717 | | |
714 | 718 | | |
715 | 719 | | |
716 | | - | |
717 | | - | |
718 | | - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
719 | 723 | | |
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
723 | 727 | | |
724 | | - | |
725 | | - | |
726 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
727 | 731 | | |
728 | 732 | | |
729 | 733 | | |
730 | 734 | | |
731 | 735 | | |
732 | | - | |
733 | | - | |
734 | | - | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
735 | 739 | | |
736 | 740 | | |
737 | 741 | | |
| |||
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
567 | 571 | | |
568 | 572 | | |
569 | 573 | | |
| |||
578 | 582 | | |
579 | 583 | | |
580 | 584 | | |
581 | | - | |
582 | | - | |
583 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
584 | 588 | | |
585 | 589 | | |
586 | 590 | | |
| |||
594 | 598 | | |
595 | 599 | | |
596 | 600 | | |
597 | | - | |
598 | | - | |
599 | | - | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
600 | 604 | | |
601 | 605 | | |
602 | 606 | | |
603 | 607 | | |
604 | 608 | | |
605 | | - | |
606 | | - | |
607 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
608 | 612 | | |
609 | 613 | | |
610 | 614 | | |
611 | 615 | | |
612 | 616 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
616 | 620 | | |
617 | 621 | | |
618 | 622 | | |
| |||
0 commit comments