|
@@ -1137,7 +1137,7 @@ describe( 'Schema', () => {
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- describe( 'findAllowedParent', () => {
|
|
|
|
|
|
|
+ describe( 'findAllowedParent()', () => {
|
|
|
beforeEach( () => {
|
|
beforeEach( () => {
|
|
|
schema.register( '$root' );
|
|
schema.register( '$root' );
|
|
|
schema.register( 'blockQuote', {
|
|
schema.register( 'blockQuote', {
|
|
@@ -1188,20 +1188,6 @@ describe( 'Schema', () => {
|
|
|
|
|
|
|
|
expect( parent ).to.null;
|
|
expect( parent ).to.null;
|
|
|
} );
|
|
} );
|
|
|
-
|
|
|
|
|
- it( 'should use custom limit element nad return null if is reached', () => {
|
|
|
|
|
- // $root is allowed ancestor for blockQuote.
|
|
|
|
|
- const node = new Element( 'blockQuote' );
|
|
|
|
|
-
|
|
|
|
|
- const parent = schema.findAllowedParent(
|
|
|
|
|
- node,
|
|
|
|
|
- Position.createAt( r1bQp ),
|
|
|
|
|
- // However lest stop searching when blockQuote is reached.
|
|
|
|
|
- r1bQ
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
- expect( parent ).to.null;
|
|
|
|
|
- } );
|
|
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
describe( 'removeDisallowedAttributes()', () => {
|
|
describe( 'removeDisallowedAttributes()', () => {
|