Skip to content

Commit

Permalink
little changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Oct 23, 2018
1 parent 6a32baf commit 40206c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/client/fixtures/automation/regression-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ $(document).ready(function () {
});
});

asyncTest('B237672 - TesCafe does not throw exception "Access is denied" after trying to get content of iframe', function () {
asyncTest('B237672 - TesCafe should not throw an exception "Access is denied" on accessing to a content of the across-domain iframe', function () {
let result = false;

const $iframe = $('<iframe></iframe>')
Expand All @@ -350,10 +350,10 @@ $(document).ready(function () {

window.QUnitGlobals.waitForIframe($iframe[0]).then(function () {
try {
const iframeBody = $iframe[0].contentWindow.document;
const iframeDocument = $iframe[0].contentWindow.document;

nativeMethods.addEventListener.call(iframeBody, 'click', function () {
throw new Error();
nativeMethods.addEventListener.call(iframeDocument, 'click', function () {
throw new Error('Click handler on an iframe should not be called');
});

result = true;
Expand Down

0 comments on commit 40206c6

Please sign in to comment.