Sfoglia il codice sorgente

Fix table alignment command tests.

Maciej Gołaszewski 6 anni fa
parent
commit
578c899b7d

+ 4 - 4
packages/ckeditor5-table/tests/tableproperties/commands/tablealignmentcommand.js

@@ -102,7 +102,7 @@ describe( 'table properties', () => {
 
 						command.execute( { value: 'right' } );
 
-						assertTableStyle( editor, null, 'float:left;margin-right:0;' );
+						assertTableStyle( editor, null, 'float:right;margin-right:0;' );
 					} );
 
 					it( 'should change selected table alignment to a passed value', () => {
@@ -110,7 +110,7 @@ describe( 'table properties', () => {
 
 						command.execute( { value: 'right' } );
 
-						assertTableStyle( editor, null, 'float:left;margin-right:0;' );
+						assertTableStyle( editor, null, 'float:right;margin-right:0;' );
 					} );
 
 					it( 'should remove alignment from a selected table if no value is passed', () => {
@@ -128,7 +128,7 @@ describe( 'table properties', () => {
 
 						command.execute( { value: 'right' } );
 
-						assertTableStyle( editor, null, 'float:left;margin-right:0;' );
+						assertTableStyle( editor, null, 'float:right;margin-right:0;' );
 					} );
 
 					it( 'should change selected table alignment to a passed value', () => {
@@ -136,7 +136,7 @@ describe( 'table properties', () => {
 
 						command.execute( { value: 'right' } );
 
-						assertTableStyle( editor, null, 'float:left;margin-right:0;' );
+						assertTableStyle( editor, null, 'float:right;margin-right:0;' );
 					} );
 
 					it( 'should remove alignment from a selected table if no value is passed', () => {

+ 1 - 1
packages/ckeditor5-table/tests/tableproperties/tablepropertiesediting-integration.js

@@ -35,7 +35,7 @@ describe( 'table properties', () => {
 			it( 'should properly downcast table with Alignment plugin enabled', () => {
 				model.change( writer => writer.setAttribute( 'alignment', 'right', table ) );
 
-				assertTableStyle( editor, 'margin-left:auto;margin-right:0;' );
+				assertTableStyle( editor, null, 'float:right;margin-right:0;' );
 			} );
 		} );