From 0e4803fbc4eb71a6b4e80431c89a2916b662ce10 Mon Sep 17 00:00:00 2001 From: Yoran Brondsema Date: Wed, 11 May 2016 12:26:44 -0300 Subject: [PATCH] Fix tests for IE11 and Edge. --- tests/acceptance/editor-selections-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/editor-selections-test.js b/tests/acceptance/editor-selections-test.js index 9860cbc3b..9129de90b 100644 --- a/tests/acceptance/editor-selections-test.js +++ b/tests/acceptance/editor-selections-test.js @@ -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) => {