(counts: Array<number>, parent?: LayoutBase)
| 132 | |
| 133 | const fontSizes = [10, 20]; |
| 134 | export function setFontSize(counts: Array<number>, parent?: LayoutBase): string { |
| 135 | let result = `setFontSize ${parent ? 'with nativeView' : ''}`; |
| 136 | counts.forEach((count) => { |
| 137 | const lbl = setup(parent); |
| 138 | const style = lbl.style; |
| 139 | const time = executeTest(() => { |
| 140 | for (let i = 0; i < count; i++) { |
| 141 | style.fontSize = fontSizes[i % 2]; |
| 142 | } |
| 143 | }); |
| 144 | result += setResultTime(time); |
| 145 | }); |
| 146 | |
| 147 | return result; |
| 148 | } |
| 149 | |
| 150 | export function setFontSizeWithParents(counts: Array<number>, parent: LayoutBase): string { |
| 151 | let result = `setFontSizeWithParents`; |
nothing calls this directly
no test coverage detected