(elements: any[])
| 956 | } |
| 957 | |
| 958 | function expectNoStickyStyles(elements: any[]) { |
| 959 | elements.forEach(element => { |
| 960 | expect(element.classList.contains('cdk-table-sticky')).toBe(false); |
| 961 | expectStickyBorderClass(element); |
| 962 | expect(element.style.position).toBe(''); |
| 963 | expect(element.style.zIndex || '0').toBe('0'); |
| 964 | ['top', 'bottom', 'left', 'right'].forEach(d => { |
| 965 | expect(element.style[d] || 'unset') |
| 966 | .withContext(`Expected ${d} to be unset`) |
| 967 | .toBe('unset'); |
| 968 | }); |
| 969 | }); |
| 970 | } |
| 971 | |
| 972 | function expectStickyStyles(element: any, zIndex: string, directions: PositionDirections = {}) { |
| 973 | expect(element.style.position).toContain('sticky'); |
no test coverage detected