浏览代码

Add a test

Dmitri Pisarev 7 年之前
父节点
当前提交
4761b0943e
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      packages/ckeditor5-engine/tests/view/filler.js

+ 8 - 0
packages/ckeditor5-engine/tests/view/filler.js

@@ -111,6 +111,14 @@ describe( 'filler', () => {
 
 			expect( isInlineFiller( node ) ).to.be.false;
 		} );
+		
+		it( 'should be true for inline filler from inside iframe', () => {
+			const iframe = document.createElement('iframe');
+			document.body.appendChild(iframe);
+			const node = iframe.contentDocument.createTextNode( INLINE_FILLER );
+
+			expect( isInlineFiller( node ) ).to.be.true;
+		} );
 	} );
 
 	describe( 'isBlockFiller', () => {