From 40206c641e83685902608e4f65e809a5764da594 Mon Sep 17 00:00:00 2001 From: "alexey.kamaev" Date: Tue, 23 Oct 2018 11:58:03 +0300 Subject: [PATCH] little changes --- test/client/fixtures/automation/regression-test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/client/fixtures/automation/regression-test.js b/test/client/fixtures/automation/regression-test.js index db69d0d5b6e..1ec2b10be37 100644 --- a/test/client/fixtures/automation/regression-test.js +++ b/test/client/fixtures/automation/regression-test.js @@ -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 = $('') @@ -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;