(element: any, directions: {[key: string]: boolean} = {})
| 959 | } |
| 960 | |
| 961 | function expectStickyBorderClass(element: any, directions: {[key: string]: boolean} = {}) { |
| 962 | ['top', 'bottom', 'left', 'right'].forEach(d => { |
| 963 | const stickyClass = `cdk-table-sticky-border-elem-${d}`; |
| 964 | |
| 965 | if (directions[d]) { |
| 966 | expect(element.classList).toContain(stickyClass); |
| 967 | } else { |
| 968 | expect(element.classList).not.toContain(stickyClass); |
| 969 | } |
| 970 | }); |
| 971 | } |
| 972 | |
| 973 | describe('on "display: flex" table style', () => { |
| 974 | let dataRows: HTMLElement[]; |
no outgoing calls
no test coverage detected