Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with Chrome and whitespaces (#2365) #2388

Merged
merged 2 commits into from
May 22, 2018

Conversation

AlexKamaev
Copy link
Contributor

No description provided.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 4b8a91a have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 808092c have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 1159c35 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 1159c35 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 1159c35 have passed. See details:

@AlexKamaev
Copy link
Contributor Author

\cc @AndreyBelym

@@ -145,6 +145,9 @@ function _typeTextToContentEditable (element, text) {
var endNode = currentSelection.endPos.node;
var needProcessInput = true;
var needRaiseInputEvent = true;
var textInputData = text;

text = text === ' ' ? String.fromCharCode(160) : text;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (!browserUtils.isFirefox) {
asyncTest('textInput eventArgs.data should contain space but not  )', function () {
var editor = document.createElement('div');
var text = ' ';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use more complex complex value here (at least Hello world).

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit d69d7b3 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit d69d7b3 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit d69d7b3 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit d69d7b3 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit d69d7b3 have failed. See details:

@@ -11,6 +11,7 @@ var domUtils = testCafeCore.domUtils;
var contentEditable = testCafeCore.contentEditable;
var textSelection = testCafeCore.textSelection;

const WHITE_SPACES_RE = /\s/g;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use \s, because it matches newline characters.

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 19cab01 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 19cab01 have failed. See details:

@AlexKamaev
Copy link
Contributor Author

@testcafe-build-bot \retest

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 19cab01 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

❌ Tests for the commit 19cab01 have failed. See details:

@testcafe-build-bot
Copy link
Collaborator

✅ Tests for the commit 19cab01 have passed. See details:

@AlexKamaev AlexKamaev merged commit 9264e69 into DevExpress:master May 22, 2018
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this pull request Dec 18, 2019
)

* fix issues with Chrome and whitespaces (DevExpress#2365)

* fix review remarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants