From de1d8692930308f438b4af02586a3cba99674387 Mon Sep 17 00:00:00 2001 From: Yoran Brondsema Date: Wed, 11 May 2016 12:39:17 -0300 Subject: [PATCH] Fix failing test on the other browsers. --- tests/acceptance/editor-selections-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/editor-selections-test.js b/tests/acceptance/editor-selections-test.js index 9129de90b..e37e5e4fd 100644 --- a/tests/acceptance/editor-selections-test.js +++ b/tests/acceptance/editor-selections-test.js @@ -74,7 +74,7 @@ test('when editing is disabled, the selection detection code is disabled', (asse assert.equal(editor.activeSections.length, 0, 'no selection inside the editor'); // Edge and IE11 do not introduce newlines - assert.equal(Helpers.dom.getSelectedText().replace('\n', ''), "trick ponyoutside"); + assert.equal(Helpers.dom.getSelectedText().replace(/\n/g, ''), "trick ponyoutside"); }); test('selecting an entire section and deleting removes it', (assert) => {