8
0
Просмотр исходного кода

Make unicode support test less confusing.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
8460b9309d
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/ckeditor5-mention/tests/mentionui.js

+ 3 - 3
packages/ckeditor5-mention/tests/mentionui.js

@@ -805,7 +805,7 @@ describe( 'MentionUI', () => {
 					feeds: [
 					feeds: [
 						{
 						{
 							// Always return 5 items
 							// Always return 5 items
-							feed: () => [ '@Barney', '@Lily', '@Marshall', '@Robin', '@Ted' ],
+							feed: [ '@תַפּוּחַ', '@אַגָס', '@apple', '@pear' ],
 							marker: '@'
 							marker: '@'
 						}
 						}
 					]
 					]
@@ -820,14 +820,14 @@ describe( 'MentionUI', () => {
 				setData( model, '<paragraph>foo []</paragraph>' );
 				setData( model, '<paragraph>foo []</paragraph>' );
 
 
 				model.change( writer => {
 				model.change( writer => {
-					writer.insertText( '@ב', doc.selection.getFirstPosition() );
+					writer.insertText( '@ס', doc.selection.getFirstPosition() );
 				} );
 				} );
 
 
 				return waitForDebounce()
 				return waitForDebounce()
 					.then( () => {
 					.then( () => {
 						expect( panelView.isVisible, 'panel is visible' ).to.be.true;
 						expect( panelView.isVisible, 'panel is visible' ).to.be.true;
 						expect( editor.model.markers.has( 'mention' ), 'marker is inserted' ).to.be.true;
 						expect( editor.model.markers.has( 'mention' ), 'marker is inserted' ).to.be.true;
-						expect( mentionsView.items ).to.have.length( 5 );
+						expect( mentionsView.items ).to.have.length( 1 );
 					} );
 					} );
 			} );
 			} );
 		} );
 		} );