File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,23 @@ bender.test( {
134
134
} ) ;
135
135
} ,
136
136
137
+ // #13420, #13419
138
+ 'test link with double quotes' : function ( ) {
139
+ var bot = this . editorBot ;
140
+
141
+ var pastedText = 'https://foo.bar?a="b"' ;
142
+ var expected = '<div data-oembed-url="https://foo.bar?a=%22b%22"><img src="https://foo.bar?a=%22b%22" /></div>' ;
143
+
144
+ bot . setData ( '' , function ( ) {
145
+ bot . editor . focus ( ) ;
146
+ this . editor . execCommand ( 'paste' , pastedText ) ;
147
+
148
+ wait ( function ( ) {
149
+ assert . areSame ( expected , bot . getData ( 1 ) , 'Link with double quotes characters is embedded.' ) ;
150
+ } , 200 ) ;
151
+ } ) ;
152
+ } ,
153
+
137
154
'test uppercase link is auto embedded' : function ( ) {
138
155
var pastedText = '<A href="https://foo.bar/bom">https://foo.bar/bom</A>' ,
139
156
expected = / ^ < a d a t a - c k e - a u t o e m b e d = " \d + " h r e f = " h t t p s : \/ \/ f o o .b a r \/ b o m " > h t t p s : \/ \/ f o o .b a r \/ b o m < \/ a > $ / ;
You can’t perform that action at this time.
0 commit comments