From 83c4c90e624f5877c5109f60fbee7a03979c9577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Fri, 17 Apr 2020 09:43:33 +0200 Subject: [PATCH] Other: Remove `env.isEdge`. Closes ckeditor/ckeditor5#6202. Remove some special cases for Edge, as since it's Chromium-based now, it behaves closer to others. --- .../ckeditor5-horizontal-line/tests/horizontallineediting.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/ckeditor5-horizontal-line/tests/horizontallineediting.js b/packages/ckeditor5-horizontal-line/tests/horizontallineediting.js index e1777450ec1..4e366863542 100644 --- a/packages/ckeditor5-horizontal-line/tests/horizontallineediting.js +++ b/packages/ckeditor5-horizontal-line/tests/horizontallineediting.js @@ -9,7 +9,6 @@ import HorizontalLineCommand from '../src/horizontallinecommand'; import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model'; import { getData as getViewData } from '@ckeditor/ckeditor5-engine/src/dev-utils/view'; import { isWidget } from '@ckeditor/ckeditor5-widget/src/utils'; -import env from '@ckeditor/ckeditor5-utils/src/env'; import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils'; describe( 'HorizontalLineEditing', () => { @@ -18,9 +17,6 @@ describe( 'HorizontalLineEditing', () => { testUtils.createSinonSandbox(); beforeEach( () => { - // Most tests assume non-edge environment but we do not set `contenteditable=false` on Edge so stub `env.isEdge`. - testUtils.sinon.stub( env, 'isEdge' ).get( () => false ); - return VirtualTestEditor .create( { plugins: [ HorizontalLineEditing ]