()
| 309 | // For this reason we poll until the style becomes available. |
| 310 | // Sync case. |
| 311 | const styleLoaded = () => { |
| 312 | const sheets = doc.styleSheets; |
| 313 | for (let i = 0; i < sheets.length; i++) { |
| 314 | const sheet = sheets[i]; |
| 315 | if (sheet.ownerNode == style) { |
| 316 | return true; |
| 317 | } |
| 318 | } |
| 319 | return false; |
| 320 | }; |
| 321 | |
| 322 | if (styleLoaded()) { |
| 323 | cb(); |
no outgoing calls
no test coverage detected