瀏覽代碼

Tests: Unit test for signle styled list item added.

Krzysztof Krztoń 7 年之前
父節點
當前提交
b2e68dbbde
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/ckeditor5-list/tests/listediting.js

+ 4 - 0
packages/ckeditor5-list/tests/listediting.js

@@ -345,6 +345,10 @@ describe( 'ListEditing', () => {
 				'<p>foo</p><ul><li>xxx</li><li>yyy</li></ul>'
 			);
 
+			// #ckeditor5/1399
+			test( 'single item with `font-weight` style',
+				'<ol><li style="font-weight: bold">foo</li></ol>', '<ol><li><strong>foo</strong></li></ol>' );
+
 			it( 'model test for mixed content', () => {
 				editor.setData( '<ol><li>a</li></ol><p>xxx</p><ul><li>b</li><li>c</li></ul><p>yyy</p><ul><li>d</li></ul>' );