remove redundant test for 'iframe contentWindow without src' (iframes.js covers it)

This commit is contained in:
Peter Snyder 2017-10-27 18:00:59 -05:00
parent 793b688909
commit 8a45bc6ff6

View file

@ -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);
});
});
});
});