(counts: Array<number>, parent: LayoutBase)
| 148 | } |
| 149 | |
| 150 | export function setFontSizeWithParents(counts: Array<number>, parent: LayoutBase): string { |
| 151 | let result = `setFontSizeWithParents`; |
| 152 | const style = parent.style; |
| 153 | counts.forEach((count) => { |
| 154 | if (count > 1000) { |
| 155 | result += setResultTime(noValue); |
| 156 | |
| 157 | return; |
| 158 | } |
| 159 | |
| 160 | setupParents(parent); |
| 161 | const time = executeTest(() => { |
| 162 | for (let i = 0; i < count; i++) { |
| 163 | style.fontSize = fontSizes[i % 2]; |
| 164 | } |
| 165 | }); |
| 166 | result += setResultTime(time); |
| 167 | }); |
| 168 | |
| 169 | return result; |
| 170 | } |
| 171 | |
| 172 | export function setFontWeight(counts: Array<number>, parent?: LayoutBase): string { |
| 173 | let result = `setFontWeight ${parent ? 'with nativeView' : ''}`; |
nothing calls this directly
no test coverage detected