(element, callback)
| 48 | }); |
| 49 | |
| 50 | function waitForMutation(element, callback) { |
| 51 | return new Promise((resolve) => { |
| 52 | const mo = new MutationObserver(() => { |
| 53 | resolve(); |
| 54 | mo.disconnect(); |
| 55 | }); |
| 56 | mo.observe(element, { |
| 57 | attributes: true, |
| 58 | childList: true, |
| 59 | subtree: true, |
| 60 | characterData: true, |
| 61 | }); |
| 62 | callback(); |
| 63 | }).then(() => { |
| 64 | // Skip couple more animation frames. |
| 65 | return new Promise((resolve) => setTimeout(resolve, 32)); |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | describe('R1', () => { |
| 70 | it('testElementR1', () => { |
no test coverage detected