8
0
Pārlūkot izejas kodu

Change fontBackgroundColor to match yellow color from color picker

panr 5 gadi atpakaļ
vecāks
revīzija
4bae1de3e1

+ 2 - 2
packages/ckeditor5-build-decoupled-document/tests/ckeditor.js

@@ -204,11 +204,11 @@ describe( 'DecoupledEditor build', () => {
 			} );
 
 			it( 'font background color works', () => {
-				const data = '<p><span style="background-color:gold;">foo</span></p>';
+				const data = '<p><span style="background-color:hsl(60,75%,60%);">foo</span></p>';
 
 				editor.setData( data );
 				expect( editor.getData() ).to.equal( data );
-				expect( editor.model.document.selection.getAttribute( 'fontBackgroundColor' ) ).to.equal( 'gold' );
+				expect( editor.model.document.selection.getAttribute( 'fontBackgroundColor' ) ).to.equal( 'hsl(60,75%,60%)' );
 			} );
 
 			it( 'font color works', () => {