@@ -619,20 +619,20 @@ describe('markdown-toolbar-element', function () {
619619 setVisualValue ( 'One\n|Two\nThree|\n' )
620620 clickToolbar ( 'md-ordered-list' )
621621 clickToolbar ( 'md-unordered-list' )
622- assert . equal ( 'One\n\n- Two| \n- Three\n|' , visualValue ( ) )
622+ assert . equal ( 'One\n\n| - Two\n- Three\n|' , visualValue ( ) )
623623 } )
624624
625625 it ( 'does not stack list styles when selecting one line' , function ( ) {
626- setVisualValue ( 'One\n|Two|\nThree| \n' )
626+ setVisualValue ( 'One\n|Two|\nThree\n' )
627627 clickToolbar ( 'md-ordered-list' )
628628 clickToolbar ( 'md-unordered-list' )
629- assert . equal ( 'One\n\n- Two|\n\nT|hree ' , visualValue ( ) )
629+ assert . equal ( 'One\n\n| - Two|\n\nThree ' , visualValue ( ) )
630630 } )
631631
632632 it ( 'turns line into list when you click the unordered list icon with selection' , function ( ) {
633633 setVisualValue ( 'One\n|Two|\nThree\n' )
634634 clickToolbar ( 'md-unordered-list' )
635- assert . equal ( 'One\n\n- | Two|\n\nThree\n' , visualValue ( ) )
635+ assert . equal ( 'One\n\n|- Two|\n\nThree\n' , visualValue ( ) )
636636 } )
637637
638638 it ( 'turns line into list when you click the unordered list icon without selection' , function ( ) {
@@ -648,29 +648,29 @@ describe('markdown-toolbar-element', function () {
648648 } )
649649
650650 it ( 'prefixes newlines when a list is created on the last line' , function ( ) {
651- setVisualValue ( "Here's a list:|One |" )
651+ setVisualValue ( "Here's a | list:|" )
652652 clickToolbar ( 'md-unordered-list' )
653- assert . equal ( "Here's a list:\n\n- |One |" , visualValue ( ) )
653+ assert . equal ( "|- Here's a list:|" , visualValue ( ) )
654654 } )
655655
656656 it ( 'surrounds list with newlines when a list is created on an existing line' , function ( ) {
657657 setVisualValue ( "Here's a list:|One|\nThis is text after the list" )
658658 clickToolbar ( 'md-unordered-list' )
659- assert . equal ( "Here's a list:\n\n- | One|\n\nThis is text after the list" , visualValue ( ) )
659+ assert . equal ( "|- Here's a list:One|\n\nThis is text after the list" , visualValue ( ) )
660660 } )
661661
662662 it ( 'undo the list when button is clicked again' , function ( ) {
663663 setVisualValue ( '|Two|' )
664664 clickToolbar ( 'md-unordered-list' )
665- assert . equal ( '- | Two|' , visualValue ( ) )
665+ assert . equal ( '|- Two|' , visualValue ( ) )
666666 clickToolbar ( 'md-unordered-list' )
667667 assert . equal ( '|Two|' , visualValue ( ) )
668668 } )
669669
670670 it ( 'creates ordered list without selection' , function ( ) {
671671 setVisualValue ( 'apple\n|pear\nbanana\n' )
672672 clickToolbar ( 'md-ordered-list' )
673- assert . equal ( 'apple\n\n1. |\n\npear \nbanana\n' , visualValue ( ) )
673+ assert . equal ( 'apple\n\n1. |pear\n \nbanana\n' , visualValue ( ) )
674674 } )
675675
676676 it ( 'undo an ordered list without selection' , function ( ) {
0 commit comments