test: delete should not hang in exposeBinding test (#13705)
This commit is contained in:
parent
39525878ab
commit
0839817ff2
|
|
@ -1,10 +0,0 @@
|
||||||
<script>
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
|
||||||
const iframe = document.createElement('iframe');
|
|
||||||
const url = new URL(location.href);
|
|
||||||
url.hostname = '127.0.0.2';
|
|
||||||
url.pathname = '/one-style.html';
|
|
||||||
iframe.src = url.toString();
|
|
||||||
document.body.appendChild(iframe);
|
|
||||||
}, false);
|
|
||||||
</script>
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
<script>
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
|
||||||
const iframe = document.createElement('iframe');
|
|
||||||
const url = new URL(location.href);
|
|
||||||
url.hostname = '127.0.0.1';
|
|
||||||
url.pathname = '/inner-oopif.html';
|
|
||||||
iframe.src = url.toString();
|
|
||||||
document.body.appendChild(iframe);
|
|
||||||
setTimeout(() => {
|
|
||||||
url.hostname = '127.0.0.3'
|
|
||||||
iframe.src = url.toString();
|
|
||||||
}, 50);
|
|
||||||
}, false);
|
|
||||||
</script>
|
|
||||||
|
|
@ -94,16 +94,6 @@ it('should expose function', async ({ page, browser, server }) => {
|
||||||
expect(result).toBe(36);
|
expect(result).toBe(36);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not hang in exposeBinding when nested oopifs navigate', async ({ page, browser, server }) => {
|
|
||||||
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/13637' });
|
|
||||||
await page.goto(server.PREFIX + '/outer-oopif.html');
|
|
||||||
await page.context().exposeBinding('mul', (source, a, b) => a * b);
|
|
||||||
const result = await page.evaluate(async function() {
|
|
||||||
return await window['mul'](9, 4);
|
|
||||||
});
|
|
||||||
expect(result).toBe(36);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should emulate media', async ({ page, browser, server }) => {
|
it('should emulate media', async ({ page, browser, server }) => {
|
||||||
await page.goto(server.PREFIX + '/dynamic-oopif.html');
|
await page.goto(server.PREFIX + '/dynamic-oopif.html');
|
||||||
expect(page.frames().length).toBe(2);
|
expect(page.frames().length).toBe(2);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue