Skip to content

Commit

Permalink
0.18.7-dev20180124 (close DevExpress#1959) (DevExpress#2068)
Browse files Browse the repository at this point in the history
* 0.18.7-dev20180124

* fix test
  • Loading branch information
LavrovArtem authored and AlexanderMoskovkin committed Jan 25, 2018
1 parent 5190e2f commit ea29623
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "testcafe",
"description": "Automated browser testing for the modern web development stack.",
"license": "MIT",
"version": "0.18.7-dev20180117",
"version": "0.18.7-dev20180124",
"author": {
"name": "Developer Express Inc.",
"url": "https://www.devexpress.com/"
Expand Down Expand Up @@ -102,7 +102,7 @@
"stack-chain": "^1.3.6",
"strip-bom": "^2.0.0",
"testcafe-browser-tools": "1.4.6",
"testcafe-hammerhead": "12.1.8",
"testcafe-hammerhead": "12.1.9",
"testcafe-legacy-api": "3.1.4",
"testcafe-reporter-json": "^2.1.0",
"testcafe-reporter-list": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion test/client/data/dom-utils/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(function (isIFrameWindowInDOM, window, JSON) {
window.addEventListener('message', function (event) {
if (event.data === 'isIFrameWindowInDOM')
event.source.postMessage(JSON.stringify({ message: isIFrameWindowInDOM(window).toString() }), '*');
event.source.postMessage({ message: isIFrameWindowInDOM(window).toString() }, '*');

}, false);
})(testCafeCore.domUtils.isIFrameWindowInDOM, window, JSON);
Expand Down
7 changes: 4 additions & 3 deletions test/client/fixtures/core/dom-utils-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var hammerhead = window.getTestCafeModule('hammerhead');
var browserUtils = hammerhead.utils.browser;
var hammerhead = window.getTestCafeModule('hammerhead');
var browserUtils = hammerhead.utils.browser;
var processScript = hammerhead.processScript;

asyncTest('isIFrameWindowInDOM', function () {
expect(browserUtils.isIE ? 2 : 1);
Expand All @@ -13,7 +14,7 @@ asyncTest('isIFrameWindowInDOM', function () {

function onMessage (event) {
if (messageCounter === 0) {
equal(event.data, 'true');
equal(eval(processScript('event.data')), 'true');

var iFramePostMessage = iframe.contentWindow.postMessage.bind(iframe.contentWindow);

Expand Down

0 comments on commit ea29623

Please sign in to comment.