xpcom/tests/unit/data/bug121341.properties

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 # simple check
     2 1=abc
     3 # test whitespace trimming in key and value
     4   2	=   xy	
     5 # test parsing of escaped values
     6 3 = \u1234\t\r\n\uAB\
     7 \u1\n
     8 # test multiline properties
     9 4 = this is \
    10 multiline property
    11 5 = this is \
    12 	   another multiline property
    13 # property with DOS EOL
    14 6 = test\u0036
    15 # test multiline property with with DOS EOL
    16 7 = yet another multi\
    17     line propery
    18 # trimming should not trim escaped whitespaces
    19 8 =	\ttest5\u0020	
    20 # another variant of #8
    21 9 =     \ test6\t	    
    22 # test UTF-8 encoded property/value
    23 10aሴb = c췯d
    24 # next property should test unicode escaping at the boundary of parsing buffer
    25 # buffer size is expected to be 4096 so add comments to get to this offset
    26 ################################################################################
    27 ################################################################################
    28 ################################################################################
    29 ################################################################################
    30 ################################################################################
    31 ################################################################################
    32 ################################################################################
    33 ################################################################################
    34 ################################################################################
    35 ################################################################################
    36 ################################################################################
    37 ################################################################################
    38 ################################################################################
    39 ################################################################################
    40 ################################################################################
    41 ################################################################################
    42 ################################################################################
    43 ################################################################################
    44 ################################################################################
    45 ################################################################################
    46 ################################################################################
    47 ################################################################################
    48 ################################################################################
    49 ################################################################################
    50 ################################################################################
    51 ################################################################################
    52 ################################################################################
    53 ################################################################################
    54 ################################################################################
    55 ################################################################################
    56 ################################################################################
    57 ################################################################################
    58 ################################################################################
    59 ################################################################################
    60 ################################################################################
    61 ################################################################################
    62 ################################################################################
    63 ################################################################################
    64 ################################################################################
    65 ################################################################################
    66 ################################################################################
    67 ###############################################################################
    68 11 = \uABCD

mercurial