File tree 2 files changed +13
-1
lines changed
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>
730
730
callback : function ( text ) {
731
731
console . warn ( 'This warn is a callback: ' + text ) ;
732
732
} ,
733
- getPut : '.input-calback -preview'
733
+ getPut : '.input-callback -preview'
734
734
} ) ;
735
735
736
736
$ ( '[data-spy="affix"]' ) . affix ( {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ function setupBefore() {
4
4
5
5
function teardownAfter ( ) {
6
6
$ ( '#text' ) . remove ( ) ;
7
+ $ ( '#permalink' ) . remove ( ) ;
7
8
}
8
9
9
10
function fromToTest ( preText , resultExpect , params ) {
@@ -97,3 +98,14 @@ test( "“ and ” (Undefined chars)", function() {
97
98
98
99
fromToTest ( preText , resultExpect ) ;
99
100
} ) ;
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