From 9d793f78f067849af6615566958f2fa2f9c00606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Fri, 17 Apr 2020 09:45:40 +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. --- packages/ckeditor5-media-embed/tests/mediaembedediting.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/ckeditor5-media-embed/tests/mediaembedediting.js b/packages/ckeditor5-media-embed/tests/mediaembedediting.js index f761f9bec11..98baf04de72 100644 --- a/packages/ckeditor5-media-embed/tests/mediaembedediting.js +++ b/packages/ckeditor5-media-embed/tests/mediaembedediting.js @@ -10,7 +10,6 @@ import MediaEmbedEditing from '../src/mediaembedediting'; import { setData as setModelData, getData as getModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model'; import { getData as getViewData } from '@ckeditor/ckeditor5-engine/src/dev-utils/view'; import normalizeHtml from '@ckeditor/ckeditor5-utils/tests/_utils/normalizehtml'; -import env from '@ckeditor/ckeditor5-utils/src/env'; describe( 'MediaEmbedEditing', () => { let editor, model, doc, view; @@ -54,11 +53,6 @@ describe( 'MediaEmbedEditing', () => { } }; - beforeEach( () => { - // Most tests assume non-edge environment but we do not set `contenteditable=false` on Edge so stub `env.isEdge`. - sinon.stub( env, 'isEdge' ).get( () => false ); - } ); - afterEach( () => { sinon.restore(); } );