MCPcopy Create free account
hub / github.com/angular/components / expectNoStickyStyles

Function expectNoStickyStyles

src/cdk/table/table.spec.ts:958–970  ·  view source on GitHub ↗
(elements: any[])

Source from the content-addressed store, hash-verified

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');

Callers 1

table.spec.tsFile · 0.85

Calls 1

expectStickyBorderClassFunction · 0.85

Tested by

no test coverage detected