From 24d51cb2bb3291370685962efc83d8872ce9240a Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 14 Apr 2020 15:36:11 -0700 Subject: [PATCH] test: delete "Node.constructor.name in utility context" (#1788) --- test/evaluation.spec.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/evaluation.spec.js b/test/evaluation.spec.js index ddd6ef7730..4582391cf5 100644 --- a/test/evaluation.spec.js +++ b/test/evaluation.spec.js @@ -440,13 +440,4 @@ describe('Frame.evaluate', function() { const error = await page.evaluate(body => body.innerHTML, bodyHandle).catch(e => e); expect(error.message).toContain('Unable to adopt element handle from a different document'); }); - it.fail(FFOX)('should return non-empty Node.constructor.name in utility context', async({page,server}) => { - await page.goto(server.EMPTY_PAGE); - await utils.attachFrame(page, 'frame1', server.EMPTY_PAGE); - const frame = page.frames()[1]; - const context = await frame._utilityContext(); - const elementHandle = await context.evaluateHandleInternal(() => window.top.document.querySelector('#frame1')); - const constructorName = await context.evaluateInternal(node => node.constructor.name, elementHandle); - expect(constructorName).toBe('HTMLIFrameElement'); - }); });