File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -730,7 +730,7 @@ <h2 class="page-header">callback</h2>
730730 callback : function ( text ) {
731731 console . warn ( 'This warn is a callback: ' + text ) ;
732732 } ,
733- getPut : '.input-calback -preview'
733+ getPut : '.input-callback -preview'
734734 } ) ;
735735
736736 $ ( '[data-spy="affix"]' ) . affix ( {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ function setupBefore() {
44
55function teardownAfter ( ) {
66 $ ( '#text' ) . remove ( ) ;
7+ $ ( '#permalink' ) . remove ( ) ;
78}
89
910function fromToTest ( preText , resultExpect , params ) {
@@ -97,3 +98,14 @@ test( "“ and ” (Undefined chars)", function() {
9798
9899 fromToTest ( preText , resultExpect ) ;
99100} ) ;
101+
102+ test ( "callback don't bind" , function ( ) {
103+ var params = {
104+ callback : function ( ) { console . log ( 'callback as console' ) ; }
105+ } ;
106+
107+ var preText = "A text betweet quotes “ and ” are not going to be a problem!" ;
108+ var resultExpect = 'a-text-betweet-quotes-and-are-not-going-to-be-a-problem' ;
109+
110+ fromToTest ( preText , resultExpect , params ) ;
111+ } ) ;
You can’t perform that action at this time.
0 commit comments