mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
refactor(iframe): [PKG-IFRAME-03] scope requests to active documents
This commit is contained in:
1 parent
b8cdafedd1
commit
1342de94ef
27 files changed
+10860
-69
No files matched your search
@@ -116,7 +116,7 @@ for (const item of cases) {
|
||||
for (const payload of [null, false, 3, 'packet', {}, { type: 3 }])
|
||||
window.targetFrame.contentWindow.postMessage(payload, '*')
|
||||
})
|
||||
await expect.poll(() => child.evaluate(() => window.received.length)).toBe(6)
|
||||
await expect.poll(() => child.evaluate(() => window.received.filter(packet => !packet.internal).length)).toBe(6)
|
||||
const value = await page.evaluate(() => window.tool.commit(() => {
|
||||
return 12
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user