Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

[cmv4] Fix unit tests for getSelectedText() to reflect new behavior#7132

Merged
redmunds merged 2 commits intocmv4from
nj/cmv4-unit-test-fix
Mar 10, 2014
Merged

[cmv4] Fix unit tests for getSelectedText() to reflect new behavior#7132
redmunds merged 2 commits intocmv4from
nj/cmv4-unit-test-fix

Conversation

@njx
Copy link
Copy Markdown

@njx njx commented Mar 8, 2014

Missed these in my last pull request. @redmunds

Comment thread test/spec/Editor-test.js
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In all of these tests, why don't you just check both cases of getSelectedText() ?

    expect(myEditor.getSelectedText()).toEqual(...);
    expect(myEditor.getSelectedText(true)).toEqual(...);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Duh, yes, that's better. Will fix.

@redmunds
Copy link
Copy Markdown
Contributor

Done with code review.

@njx
Copy link
Copy Markdown
Author

njx commented Mar 10, 2014

@redmunds - ready for re-review

@redmunds
Copy link
Copy Markdown
Contributor

Looks good. Merging.

redmunds added a commit that referenced this pull request Mar 10, 2014
[cmv4] Fix unit tests for getSelectedText() to reflect new behavior
@redmunds redmunds merged commit 86b4d1f into cmv4 Mar 10, 2014
@redmunds redmunds deleted the nj/cmv4-unit-test-fix branch March 10, 2014 20:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants