|
111 | 111 | 'test backspace, bogus #4': b( '<p><br>@</p><p>[]@</p>', '<p><br />^@!</p>' ),
|
112 | 112 |
|
113 | 113 | // False positives. Some of them are buggy, but it's a different case e.g. not merging blocks.
|
114 |
| - 'test backspace, no action #1': bf( '<p>x</p><p>y{}y</p>' ), |
115 |
| - 'test backspace, no action #2': bf( '<span>x</span><p>{}y</p>' ), |
116 |
| - 'test backspace, no action #3': bf( '<p>x</p><p><strong>y{}y</strong></p>' ), |
117 |
| - 'test backspace, no action #4': bf( '<p>x</p><blockquote><p>y{}y</p></blockquote>' ), |
118 |
| - 'test backspace, no action #5': bf( '<p>x</p><blockquote>z<p>{}y</p></blockquote>' ), |
119 |
| - 'test backspace, no action #6': bf( 'x<p>{}y</p>' ), |
120 |
| - 'test backspace, no action #7': bf( '<p>x</p>z<p>{}y</p>' ), |
| 114 | + // Note: The second pattern is just the first but after a selection normalization. |
| 115 | + 'test backspace, no action #1': bf( '<p>x</p><p>y{}y</p>', '<p>x</p><p>y^y</p>' ), |
| 116 | + 'test backspace, no action #2': bf( '<span>x</span><p>{}y</p>', '<span>x</span><p>^y</p>' ), |
| 117 | + 'test backspace, no action #3': bf( '<p>x</p><p><strong>y{}y</strong></p>', '<p>x</p><p><strong>y^y</strong></p>' ), |
| 118 | + 'test backspace, no action #4': bf( '<p>x</p><blockquote><p>y{}y</p></blockquote>', '<p>x</p><blockquote><p>y^y</p></blockquote>' ), |
| 119 | + 'test backspace, no action #5': bf( '<p>x</p><blockquote>z<p>{}y</p></blockquote>', '<p>x</p><blockquote>z<p>^y</p></blockquote>' ), |
| 120 | + 'test backspace, no action #6': bf( 'x<p>{}y</p>', 'x<p>^y</p>' ), |
| 121 | + 'test backspace, no action #7': bf( '<p>x</p>z<p>{}y</p>', '<p>x</p>z<p>^y</p>' ), |
121 | 122 |
|
122 | 123 | // Handled by list or table plugin or editable, but not related to #9998.
|
123 | 124 | // This is just to control whether the fix for #9998 does not break some case which it should not handle at all.
|
|
162 | 163 | 'test delete, bogus #4': d( '<p>[]@</p><p><br>@</p>', '<p>^<br />@!</p>' ),
|
163 | 164 |
|
164 | 165 | // False positives. Some of them are buggy, but it's a different case e.g. not merging blocks.
|
165 |
| - 'test delete, no action #1': df( '<p>x{}x</p><p>y</p>' ), |
166 |
| - 'test delete, no action #2': df( '<p>x{}</p><span>y</span>' ), |
167 |
| - 'test delete, no action #3': df( '<p><strong>x{}x</strong></p><p>y</p>' ), |
168 |
| - 'test delete, no action #4': df( '<blockquote><p>x{}x</p></blockquote><p>y</p>' ), |
169 |
| - 'test delete, no action #5': df( '<blockquote><p>x{}</p>x</blockquote><p>y</p>' ), |
170 |
| - 'test delete, no action #6': df( '<p>x{}</p>y' ), |
171 |
| - 'test delete, no action #7': df( '<p>y{}</p>y<p>z</p>' ), |
| 166 | + // Note: The second pattern is just the first but after a selection normalization. |
| 167 | + 'test delete, no action #1': df( '<p>x{}x</p><p>y</p>', '<p>x^x</p><p>y</p>' ), |
| 168 | + 'test delete, no action #2': df( '<p>x{}</p><span>y</span>', '<p>x^</p><span>y</span>' ), |
| 169 | + 'test delete, no action #3': df( '<p><strong>x{}x</strong></p><p>y</p>', '<p><strong>x^x</strong></p><p>y</p>' ), |
| 170 | + 'test delete, no action #4': df( '<blockquote><p>x{}x</p></blockquote><p>y</p>', '<blockquote><p>x^x</p></blockquote><p>y</p>' ), |
| 171 | + 'test delete, no action #5': df( '<blockquote><p>x{}</p>x</blockquote><p>y</p>', '<blockquote><p>x^</p>x</blockquote><p>y</p>' ), |
| 172 | + 'test delete, no action #6': df( '<p>x{}</p>y', '<p>x^</p>y' ), |
| 173 | + 'test delete, no action #7': df( '<p>y{}</p>y<p>z</p>', '<p>y^</p>y<p>z</p>' ), |
172 | 174 |
|
173 | 175 | // Handled by list or table plugin or editable, but not related to #9998.
|
174 | 176 | // This is just to control whether the fix for #9998 does not break some case which it should not handle at all.
|
|
0 commit comments