From 973b5314c1f116762b0f2a23df51b9599eba7265 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Tue, 11 May 2021 14:55:33 -0400 Subject: [PATCH] Fix (engine): Don't strip non-Javascript ' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + '' + + 'This is thefoo' + ); + } ); + + it( 'should retain ' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + '' + + 'This is thefoo' + ); + } ); + + it( 'should not retain leading ' + + '' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + 'This is thefoo' + ); + } ); + + it( 'should not retain leading ' + + '' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + 'This is thefoo' + ); + } ); + + it( 'should not retain leading ' + + '' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + 'This is thefoo' + ); + } ); + + it( 'should not retain leading ' + + 'This is thefoo' + ); + + expect( stringify( fragment ) ).to.equal( + 'This is thefoo' + ); + } ); + } ); + + describe( 'https://github.com/ckeditor/ckeditor5/issues/9659', () => { it( 'does not lose whitespaces in Chrome\'s paste-like content', () => { const fragment = dataProcessor.toView( '' +