remove redundant test for 'iframe contentWindow without src' (iframes.js covers it)
This commit is contained in:
parent
793b688909
commit
8a45bc6ff6
1 changed files with 0 additions and 46 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue