test: delete should not hang in exposeBinding test (#13705)

This commit is contained in:
Yury Semikhatsky 2022-04-22 12:16:12 -07:00 committed by GitHub
parent 39525878ab
commit 0839817ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 34 deletions

View file

@ -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>

View file

@ -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>

View file

@ -94,16 +94,6 @@ it('should expose function', async ({ page, browser, server }) => {
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 }) => {
await page.goto(server.PREFIX + '/dynamic-oopif.html');
expect(page.frames().length).toBe(2);