|
|
@@ -28,11 +28,11 @@ describe( 'FontSizeEditing Utils', () => {
|
|
|
describe( 'named presets', () => {
|
|
|
it( 'should return defined presets', () => {
|
|
|
expect( normalizeOptions( [ 'tiny', 'small', 'default', 'big', 'huge' ] ) ).to.deep.equal( [
|
|
|
- { title: 'Tiny', model: 'tiny', view: { name: 'span', classes: 'text-tiny' } },
|
|
|
- { title: 'Small', model: 'small', view: { name: 'span', classes: 'text-small' } },
|
|
|
+ { title: 'Tiny', model: 'tiny', view: { name: 'span', classes: 'text-tiny', priority: 5 } },
|
|
|
+ { title: 'Small', model: 'small', view: { name: 'span', classes: 'text-small', priority: 5 } },
|
|
|
{ title: 'Default', model: undefined },
|
|
|
- { title: 'Big', model: 'big', view: { name: 'span', classes: 'text-big' } },
|
|
|
- { title: 'Huge', model: 'huge', view: { name: 'span', classes: 'text-huge' } }
|
|
|
+ { title: 'Big', model: 'big', view: { name: 'span', classes: 'text-big', priority: 5 } },
|
|
|
+ { title: 'Huge', model: 'huge', view: { name: 'span', classes: 'text-huge', priority: 5 } }
|
|
|
] );
|
|
|
} );
|
|
|
} );
|
|
|
@@ -40,11 +40,11 @@ describe( 'FontSizeEditing Utils', () => {
|
|
|
describe( 'numerical presets', () => {
|
|
|
it( 'should return generated presets', () => {
|
|
|
expect( normalizeOptions( [ '10', 12, 'default', '14.1', 18.3 ] ) ).to.deep.equal( [
|
|
|
- { title: '10', model: 10, view: { name: 'span', styles: { 'font-size': '10px' } } },
|
|
|
- { title: '12', model: 12, view: { name: 'span', styles: { 'font-size': '12px' } } },
|
|
|
+ { title: '10', model: 10, view: { name: 'span', styles: { 'font-size': '10px' }, priority: 5 } },
|
|
|
+ { title: '12', model: 12, view: { name: 'span', styles: { 'font-size': '12px' }, priority: 5 } },
|
|
|
{ title: 'Default', model: undefined },
|
|
|
- { title: '14.1', model: 14.1, view: { name: 'span', styles: { 'font-size': '14.1px' } } },
|
|
|
- { title: '18.3', model: 18.3, view: { name: 'span', styles: { 'font-size': '18.3px' } } }
|
|
|
+ { title: '14.1', model: 14.1, view: { name: 'span', styles: { 'font-size': '14.1px' }, priority: 5 } },
|
|
|
+ { title: '18.3', model: 18.3, view: { name: 'span', styles: { 'font-size': '18.3px' }, priority: 5 } }
|
|
|
] );
|
|
|
} );
|
|
|
} );
|