File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,18 @@ describe('markdown-toolbbar-element', function() {
401
401
assert . equal ( 'apple\n\n1. |\n\npear\nbanana\n' , visualValue ( ) )
402
402
} )
403
403
404
+ it ( 'undo an ordered list without selection' , function ( ) {
405
+ setVisualValue ( 'apple\n1. |pear\nbanana\n' )
406
+ clickToolbar ( 'md-ordered-list' )
407
+ assert . equal ( 'apple\n|pear\nbanana\n' , visualValue ( ) )
408
+ } )
409
+
410
+ it ( 'undo an ordered list without selection and puts cursor at the right position' , function ( ) {
411
+ setVisualValue ( 'apple\n1. pea|r\nbanana\n' )
412
+ clickToolbar ( 'md-ordered-list' )
413
+ assert . equal ( 'apple\npea|r\nbanana\n' , visualValue ( ) )
414
+ } )
415
+
404
416
it ( 'creates ordered list by selecting one line' , function ( ) {
405
417
setVisualValue ( 'apple\n|pear|\nbanana\n' )
406
418
clickToolbar ( 'md-ordered-list' )
You can’t perform that action at this time.
0 commit comments