| 16 | * This log is used to see if there are leaks in between tests. |
| 17 | */ |
| 18 | export function log(label, spaces) { |
| 19 | if (!debug) return; |
| 20 | |
| 21 | console.log(`${label} -----------------`); |
| 22 | console.log(document.body.children.length); |
| 23 | const logChildren = c => console.log(c.nodeName, c.className, c.id); |
| 24 | document.body.children.forEach(logChildren); |
| 25 | |
| 26 | ariaAppLog(); |
| 27 | bodyTrapLog(); |
| 28 | classListLog(); |
| 29 | focusManagerLog(); |
| 30 | portalInstancesLog(); |
| 31 | |
| 32 | console.log(`end ${label} -----------------` + (!spaces ? '' : ` |
| 33 | |
| 34 | |
| 35 | `)); |
| 36 | } |
| 37 | |
| 38 | let elementPool = []; |
| 39 | |