ソースを参照

Merge pull request #84 from ckeditor/t/ckeditor5-image/221

Tests: Update tests to the recent changes in widgets API.
Oskar Wróbel 7 年 前
コミット
ca48c93744
1 ファイル変更7 行追加0 行削除
  1. 7 0
      packages/ckeditor5-table/tests/converters/downcast.js

+ 7 - 0
packages/ckeditor5-table/tests/converters/downcast.js

@@ -16,11 +16,18 @@ import {
 	downcastTableHeadingRowsChange
 } from '../../src/converters/downcast';
 import { formatTable, formattedViewTable, modelTable } from '../_utils/utils';
+import env from '@ckeditor/ckeditor5-utils/src/env';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+
+testUtils.createSinonSandbox();
 
 describe( 'downcast converters', () => {
 	let editor, model, doc, root, viewDocument;
 
 	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 );
+
 		return VirtualTestEditor.create()
 			.then( newEditor => {
 				editor = newEditor;