Parcourir la source

Used the latest EditorConfig#language syntax.

Aleksander Nowodzinski il y a 6 ans
Parent
commit
f6bd0abead

+ 6 - 2
packages/ckeditor5-alignment/tests/alignmentcommand.js

@@ -52,7 +52,9 @@ describe( 'AlignmentCommand', () => {
 
 		it( 'is set to default alignment when selection is in block with default alignment (RTL content)', () => {
 			return ModelTestEditor.create( {
-				contentLanguage: 'ar'
+				language: {
+					content: 'ar'
+				}
 			} ).then( newEditor => {
 				model = newEditor.model;
 				command = new AlignmentCommand( newEditor );
@@ -105,7 +107,9 @@ describe( 'AlignmentCommand', () => {
 
 			it( 'should remove alignment from single block element if already has one (RTL content)', () => {
 				return ModelTestEditor.create( {
-					contentLanguage: 'ar'
+					language: {
+						content: 'ar'
+					}
 				} ).then( newEditor => {
 					model = newEditor.model;
 					command = new AlignmentCommand( newEditor );

+ 12 - 4
packages/ckeditor5-alignment/tests/alignmentediting.js

@@ -98,7 +98,9 @@ describe( 'AlignmentEditing', () => {
 			it( 'adds converters to the data pipeline', () => {
 				return VirtualTestEditor
 					.create( {
-						contentLanguage: 'ar',
+						language: {
+							content: 'ar'
+						},
 						plugins: [ AlignmentEditing, Paragraph ]
 					} )
 					.then( newEditor => {
@@ -117,7 +119,9 @@ describe( 'AlignmentEditing', () => {
 			it( 'adds a converter to the view pipeline', () => {
 				return VirtualTestEditor
 					.create( {
-						contentLanguage: 'ar',
+						language: {
+							content: 'ar'
+						},
 						plugins: [ AlignmentEditing, Paragraph ]
 					} )
 					.then( newEditor => {
@@ -191,7 +195,9 @@ describe( 'AlignmentEditing', () => {
 			it( 'adds converters to the data pipeline', () => {
 				return VirtualTestEditor
 					.create( {
-						contentLanguage: 'ar',
+						language: {
+							content: 'ar'
+						},
 						plugins: [ AlignmentEditing, Paragraph ]
 					} )
 					.then( newEditor => {
@@ -210,7 +216,9 @@ describe( 'AlignmentEditing', () => {
 			it( 'adds a converter to the view pipeline', () => {
 				return VirtualTestEditor
 					.create( {
-						contentLanguage: 'ar',
+						language: {
+							content: 'ar'
+						},
 						plugins: [ AlignmentEditing, Paragraph ]
 					} )
 					.then( newEditor => {

+ 3 - 1
packages/ckeditor5-alignment/tests/alignmentui.js

@@ -295,7 +295,9 @@ describe( 'Alignment UI', () => {
 
 				return ClassicTestEditor
 					.create( element, {
-						contentLanguage: 'ar',
+						language: {
+							content: 'ar'
+						},
 						plugins: [ AlignmentEditing, AlignmentUI ],
 						alignment: { options: [ 'center', 'justify' ] }
 					} )

+ 0 - 1
packages/ckeditor5-alignment/tests/manual/rtl.js

@@ -12,7 +12,6 @@ import Alignment from '../../src/alignment';
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
 		language: 'ar',
-		contentLanguage: 'ar',
 		plugins: [ ArticlePluginSet, Alignment ],
 		toolbar: [
 			'heading', '|', 'alignment', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo'