Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: delete should not hang in exposeBinding test (#13705)
Yury Semikhatsky0839817ff2c4
diff --git a/tests/assets/inner-oopif.html b/tests/assets/inner-oopif.htmldeleted file mode 100644index 13ac63801b..0000000000--- a/tests/assets/inner-oopif.html+++ /dev/null@@ -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>diff --git a/tests/assets/outer-oopif.html b/tests/assets/outer-oopif.htmldeleted file mode 100644index 4bf2526ddb..0000000000--- a/tests/assets/outer-oopif.html+++ /dev/null@@ -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>diff --git a/tests/library/chromium/oopif.spec.ts b/tests/library/chromium/oopif.spec.tsindex 51ba446255..49855fb3f0 100644--- a/tests/library/chromium/oopif.spec.ts+++ b/tests/library/chromium/oopif.spec.ts@@ -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);