File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -377,17 +377,17 @@ describe('browser', function(){
377377 it ( 'should log warnings when 4kb per cookie storage limit is reached' , function ( ) {
378378 var i , longVal = '' , cookieStr ;
379379
380- for ( i = 0 ; i < 4092 ; i ++ ) {
380+ for ( i = 0 ; i < 4091 ; i ++ ) {
381381 longVal += '+' ;
382382 }
383383
384384 cookieStr = document . cookie ;
385- browser . cookies ( 'x' , longVal ) ; //total size 4094 -4096, so it should go through
385+ browser . cookies ( 'x' , longVal ) ; //total size 4093 -4096, so it should go through
386386 expect ( document . cookie ) . not . toEqual ( cookieStr ) ;
387387 expect ( browser . cookies ( ) [ 'x' ] ) . toEqual ( longVal ) ;
388388 expect ( logs . warn ) . toEqual ( [ ] ) ;
389389
390- browser . cookies ( 'x' , longVal + 'xxx ' ) ; //total size 4097-4099, a warning should be logged
390+ browser . cookies ( 'x' , longVal + 'xxxx ' ) ; //total size 4097-4099, a warning should be logged
391391 expect ( logs . warn ) . toEqual (
392392 [ [ "Cookie 'x' possibly not set or overflowed because it was too large (4097 > 4096 " +
393393 "bytes)!" ] ] ) ;
You can’t perform that action at this time.
0 commit comments