File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,18 @@ describe('markdown-toolbbar-element', function() {
351
351
} )
352
352
353
353
describe ( 'lists' , function ( ) {
354
- it ( 'turns line into list when you click the unordered list icon' , function ( ) {
354
+ it ( 'turns line into list when you click the unordered list icon with selection ' , function ( ) {
355
355
setVisualValue ( 'One\n|Two|\nThree\n' )
356
356
clickToolbar ( 'md-unordered-list' )
357
357
assert . equal ( 'One\n\n- |Two|\n\nThree\n' , visualValue ( ) )
358
358
} )
359
359
360
+ it ( 'turns line into list when you click the unordered list icon without selection' , function ( ) {
361
+ setVisualValue ( 'One\n|Two and two\nThree\n' )
362
+ clickToolbar ( 'md-unordered-list' )
363
+ assert . equal ( 'One\n\n- |Two and two\n\nThree\n' , visualValue ( ) )
364
+ } )
365
+
360
366
it ( 'turns multiple lines into list when you click the unordered list icon' , function ( ) {
361
367
setVisualValue ( 'One\n|Two\nThree|\n' )
362
368
clickToolbar ( 'md-unordered-list' )
You can’t perform that action at this time.
0 commit comments