File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ window.submitToServer = function () {
4343 start ( ) ;
4444 afterLoading . call ( null , iframe . contentWindow . Cookies ) ;
4545 } ;
46- form . action = 'post_iframe.html?bust=' . concat ( + new Date ) ;
46+ form . action = 'post_iframe.html?bust=' . concat ( + new Date ( ) ) ;
4747 form . submit ( ) ;
4848 }
49- }
50- }
49+ } ;
50+ } ;
5151
5252var lifecycle = {
5353 teardown : function ( ) {
@@ -327,23 +327,23 @@ test('RFC 6265 - disallowed characters in cookie-name', function () {
327327test ( 'server processing for 2 bytes characters' , function ( ) {
328328 expect ( 1 ) ;
329329 Cookies . set ( 'ã' , 'ã' ) ;
330- submitToServer ( ) . then ( function ( Cookies ) {
330+ window . submitToServer ( ) . then ( function ( Cookies ) {
331331 strictEqual ( Cookies . get ( 'ã' ) , 'ã' , 'should handle ã character' ) ;
332332 } ) ;
333333} ) ;
334334
335335test ( 'server processing for 3 bytes characters' , function ( ) {
336336 expect ( 1 ) ;
337337 Cookies . set ( '₯' , '₯' ) ;
338- submitToServer ( ) . then ( function ( Cookies ) {
338+ window . submitToServer ( ) . then ( function ( Cookies ) {
339339 strictEqual ( Cookies . get ( '₯' ) , '₯' , 'should handle ₯ character' ) ;
340340 } ) ;
341341} ) ;
342342
343343test ( 'server processing for 4 bytes characters' , function ( ) {
344344 expect ( 1 ) ;
345345 Cookies . set ( '𩸽' , '𩸽' ) ;
346- submitToServer ( ) . then ( function ( Cookies ) {
346+ window . submitToServer ( ) . then ( function ( Cookies ) {
347347 strictEqual ( Cookies . get ( '𩸽' ) , '𩸽' , 'should handle 𩸽 character' ) ;
348348 } ) ;
349349} ) ;
You can’t perform that action at this time.
0 commit comments