From 8a45bc6ff66cba7fc5d5de9a35c3fa6d4548410b Mon Sep 17 00:00:00 2001 From: Peter Snyder <snyderp@gmail.com> Date: Fri, 27 Oct 2017 18:00:59 -0500 Subject: [PATCH] remove redundant test for 'iframe contentWindow without src' (iframes.js covers it) --- test/functional/block.js | 46 ---------------------------------------- 1 file changed, 46 deletions(-) diff --git a/test/functional/block.js b/test/functional/block.js index ed2b717..1ac15df 100644 --- a/test/functional/block.js +++ b/test/functional/block.js @@ -84,51 +84,5 @@ describe("Basic Functionality", function () { done(e); }); }); - - it("iframe contentWindow without src", function (done) { - - this.timeout = function () { - return 10000; - }; - - const testHtml = `<!DOCTYPE "html"> - <html> - <head> - <title>Test Page</title> - </head> - <body> - <iframe></iframe> - </body> - </html>`; - - const iframeContentWindowScript = "document.getElementsByTagName('iframe')[0].contentWindow.SVGGraphicsElement.prototype.getBBox()"; - - const [server, url] = testServer.start(undefined, testHtml); - - testUrl = url; - httpServer = server; - - const standardsToBlock = utils.constants.svgBlockRule; - let driverReference; - - utils.promiseGetDriver() - .then(function (driver) { - driverReference = driver; - return utils.promiseSetBlockingRules(driver, standardsToBlock); - }) - .then(() => driverReference.get(testUrl)) - .then(() => driverReference.executeScript(iframeContentWindowScript)) - .then(function () { - driverReference.quit(); - testServer.stop(httpServer); - done(); - }) - .catch(function (e) { - driverReference.quit(); - testServer.stop(httpServer); - done(e); - }); - }); - }); });