Skip to content

Commit

Permalink
Fix tests for IE11 and Edge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoran Brondsema committed May 11, 2016
1 parent 7b0b97d commit 0e4803f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/acceptance/editor-selections-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ test('when editing is disabled, the selection detection code is disabled', (asse
'outside', outsideSection);

Helpers.dom.triggerEvent(document, 'mouseup');

assert.equal(editor.activeSections.length, 0, 'no selection inside the editor');
assert.equal(Helpers.dom.getSelectedText(), "trick pony\n\noutside");
// Edge and IE11 do not introduce newlines
assert.equal(Helpers.dom.getSelectedText().replace('\n', ''), "trick ponyoutside");
});

test('selecting an entire section and deleting removes it', (assert) => {
Expand Down

0 comments on commit 0e4803f

Please sign in to comment.