(doc, visibilityState)
| 468 | }); |
| 469 | |
| 470 | function updateDocumentVisibility(doc, visibilityState) { |
| 471 | doc.visibilityState = visibilityState; |
| 472 | if (doc.addEventListener.args.length > 0) { |
| 473 | doc.addEventListener.args[0][1](); |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | it('should set up and destroy listeners', () => { |
| 478 | // 1 for top, 1 for embedSameWindow. |