|
|
@@ -13,6 +13,7 @@ import normalizeClipboardData from '@ckeditor/ckeditor5-clipboard/src/utils/norm
|
|
|
import normalizeHtml from '@ckeditor/ckeditor5-utils/tests/_utils/normalizehtml';
|
|
|
import { setData, stringify as stringifyModel } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
|
|
|
import { stringify as stringifyView } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
|
|
|
+import { assertEqualMarkup } from '@ckeditor/ckeditor5-utils/tests/_utils/utils';
|
|
|
|
|
|
import { fixtures, browserFixtures } from './fixtures';
|
|
|
|
|
|
@@ -309,7 +310,7 @@ function compareContentWithBase64Images( actual, expected ) {
|
|
|
|
|
|
// In some rare cases there might be ` ` in a model data
|
|
|
// (see https://github.com/ckeditor/ckeditor5-paste-from-office/issues/27).
|
|
|
- expect( actualModel.replace( /\u00A0/g, ' ' ) ).to.equal( expectedModel );
|
|
|
+ assertEqualMarkup( actualModel.replace( /\u00A0/g, ' ' ), expectedModel );
|
|
|
|
|
|
if ( actualImages.length > 0 && expectedImages.length > 0 ) {
|
|
|
expect( actualImages.length ).to.equal( expectedImages.length );
|