Explorar el Código

Brought back 100% CC for schema.

Piotrek Koszuliński hace 8 años
padre
commit
c2a8e6ab1b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      packages/ckeditor5-engine/tests/model/schema.js

+ 5 - 0
packages/ckeditor5-engine/tests/model/schema.js

@@ -418,6 +418,11 @@ describe( 'Schema', () => {
 		} );
 
 		it( 'always returns $root element if any other limit was not defined', () => {
+			schema.extend( '$root', {
+				isLimit: false
+			} );
+			expect( schema.isLimit( '$root' ) ).to.be.false;
+
 			setData( model, '<div><section><article><paragraph>foo[]bar</paragraph></article></section></div>' );
 			expect( schema.getLimitElement( doc.selection ) ).to.equal( root );
 		} );