MCPcopy
hub / github.com/tinymce/tinymce / checkWidth

Function checkWidth

modules/snooker/src/test/ts/browser/TableSizesTest.ts:124–129  ·  view source on GitHub ↗
(expected: string[][], table: SugarElement<HTMLTableElement>, newWidth: string)

Source from the content-addressed store, hash-verified

122 };
123
124 const checkWidth = (expected: string[][], table: SugarElement<HTMLTableElement>, newWidth: string) => {
125 Insert.append(SugarBody.body(), table);
126 Sizes.redistribute(table, Optional.some(newWidth), Optional.none());
127 Assert.eq('', expected, readWidth(table));
128 Remove.remove(table);
129 };
130
131 const checkBasicWidth = (expected: string[][], input: string[][], initialWidth: string, newWidth: string) => {
132 const table = generateW(input, initialWidth);

Callers 2

checkBasicWidthFunction · 0.85
TableSizesTest.tsFile · 0.85

Calls 5

readWidthFunction · 0.90
appendMethod · 0.80
someMethod · 0.80
noneMethod · 0.80
removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…