Browse Source

Tests: added missing test for a change in Schema.

Szymon Cofalik 9 years ago
parent
commit
e8e99294c8
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/ckeditor5-engine/tests/model/schema/schema.js

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

@@ -208,6 +208,10 @@ describe( 'check', () => {
 			// Even if image has src and alt, it can't have attributes that weren't allowed
 			expect( schema.check( { name: 'img', inside: '$block', attributes: [ 'alt', 'src', 'attr' ] } ) ).to.be.false;
 		} );
+
+		it( 'should omit path elements that are added to schema', () => {
+			expect( schema.check( { name: '$inline', inside: '$block new $block' } ) ).to.be.true;
+		} );
 	} );
 
 	describe( 'array of elements as inside', () => {