1[name.html]
2  [Return the most recent nameless cookie, even if preceded by =, in addition to other valid cookie]
3    expected:
4      if (os == "android") and not webrender and not debug: FAIL
5      if (os == "linux") and not webrender and debug: FAIL
6      if (os == "linux") and webrender and not debug: FAIL
7      if (os == "win") and not debug: FAIL
8      if (os == "mac") and not debug: FAIL
9      if (os == "android") and webrender: FAIL
10      [FAIL, PASS]
11
12  [Use last value for cookies with identical names]
13    expected:
14      if (os == "android") and not webrender and not debug: FAIL
15      if (os == "linux") and not webrender and debug: FAIL
16      if (os == "linux") and webrender and not debug: FAIL
17      if (os == "win") and not debug: FAIL
18      if (os == "mac") and not debug: FAIL
19      if (os == "android") and webrender: FAIL
20      [FAIL, PASS]
21
22  [Keep first-in, first-out name order]
23    expected:
24      if (os == "linux") and webrender and not debug: FAIL
25      if (os == "linux") and not webrender and debug: FAIL
26      if (os == "android") and not webrender and not debug: FAIL
27      if (os == "mac") and not debug: FAIL
28      if (os == "android") and webrender: FAIL
29      if (os == "win") and not debug: FAIL
30      [FAIL, PASS]
31
32  [Keep first-in, first-out single-char name order]
33    expected:
34      if (os == "android") and not webrender and not debug: FAIL
35      if (os == "linux") and webrender and not debug: FAIL
36      if (os == "linux") and not webrender and debug: FAIL
37      if (os == "win") and not debug: FAIL
38      if (os == "android") and webrender: FAIL
39      if (os == "mac") and not debug: FAIL
40      [FAIL, PASS]
41
42  [Keep non-alphabetic first-in, first-out name order]
43    expected:
44      if (os == "android") and not webrender and not debug: FAIL
45      if (os == "linux") and not webrender and debug: FAIL
46      if (os == "linux") and webrender and not debug: FAIL
47      if (os == "android") and webrender: FAIL
48      if (os == "win") and not debug: FAIL
49      if (os == "mac") and not debug: FAIL
50      [FAIL, PASS]
51
52  [Keep first-in, first-out order if comma-separated]
53    expected:
54      if (os == "android") and not webrender and not debug: FAIL
55      if (os == "linux") and not webrender and debug: FAIL
56      if (os == "linux") and webrender and not debug: FAIL
57      if (os == "win") and not debug: FAIL
58      if (os == "android") and webrender: FAIL
59      if (os == "mac") and not debug: FAIL
60      [FAIL, PASS]
61
62  [Set nameless cookie, given `Set-Cookie: =test16`]
63    expected:
64      if (os == "linux") and webrender and not debug: FAIL
65      if (os == "linux") and not webrender and debug: FAIL
66      if (os == "android") and not webrender and not debug: FAIL
67      if (os == "win") and not debug: FAIL
68      if (os == "android") and webrender: FAIL
69      if (os == "mac") and not debug: FAIL
70      [FAIL, PASS]
71
72  [Overwrite nameless cookie]
73    expected:
74      if (os == "linux") and webrender and not debug: FAIL
75      if (os == "linux") and not webrender and debug: FAIL
76      if (os == "android") and not webrender and not debug: FAIL
77      if (os == "win") and not debug: FAIL
78      if (os == "mac") and not debug: FAIL
79      if (os == "android") and webrender: FAIL
80      [FAIL, PASS]
81
82  [Ignore cookie with empty name and empty value]
83    expected:
84      if (os == "android") and not webrender and not debug: FAIL
85      if (os == "linux") and webrender and not debug: FAIL
86      if (os == "linux") and not webrender and debug: FAIL
87      if (os == "win") and not debug: FAIL
88      if (os == "android") and webrender: FAIL
89      if (os == "mac") and not debug: FAIL
90      [FAIL, PASS]
91
92  [Ignore cookie with no name or value]
93    expected:
94      if (os == "linux") and not webrender and debug: FAIL
95      if (os == "linux") and webrender and not debug: FAIL
96      if (os == "android") and not webrender and not debug: FAIL
97      if (os == "win") and not debug: FAIL
98      if (os == "android") and webrender: FAIL
99      if (os == "mac") and not debug: FAIL
100      [FAIL, PASS]
101
102  [Name is set as expected for a=test]
103    expected:
104      if (os == "android") and not webrender and not debug: FAIL
105      if (os == "linux") and webrender and not debug: FAIL
106      if (os == "linux") and not webrender and debug: FAIL
107      if (os == "android") and webrender: FAIL
108      if (os == "mac") and not debug: FAIL
109      if (os == "win") and not debug: FAIL
110      [FAIL, PASS]
111
112  [Name is set as expected for 1=test]
113    expected:
114      if (os == "linux") and not webrender and debug: FAIL
115      if (os == "linux") and webrender and not debug: FAIL
116      if (os == "android") and not webrender and not debug: FAIL
117      if (os == "win") and not debug: FAIL
118      if (os == "android") and webrender: FAIL
119      if (os == "mac") and not debug: FAIL
120      [FAIL, PASS]
121
122  [Name is set as expected for $=test]
123    expected:
124      if (os == "android") and not webrender and not debug: FAIL
125      if (os == "linux") and webrender and not debug: FAIL
126      if (os == "linux") and not webrender and debug: FAIL
127      if (os == "android") and webrender: FAIL
128      if (os == "mac") and not debug: FAIL
129      if (os == "win") and not debug: FAIL
130      [FAIL, PASS]
131
132  [Name is set as expected for !a=test]
133    expected:
134      if (os == "linux") and webrender and not debug: FAIL
135      if (os == "linux") and not webrender and debug: FAIL
136      if (os == "android") and not webrender and not debug: FAIL
137      if (os == "win") and not debug: FAIL
138      if (os == "mac") and not debug: FAIL
139      if (os == "android") and webrender: FAIL
140      [FAIL, PASS]
141
142  [Name is set as expected for @a=test]
143    expected:
144      if (os == "android") and not webrender and not debug: FAIL
145      if (os == "linux") and webrender and not debug: FAIL
146      if (os == "linux") and not webrender and debug: FAIL
147      if (os == "android") and webrender: FAIL
148      if (os == "mac") and not debug: FAIL
149      if (os == "win") and not debug: FAIL
150      [FAIL, PASS]
151
152  [Name is set as expected for #a=test]
153    expected:
154      if (os == "linux") and webrender and not debug: FAIL
155      if (os == "linux") and not webrender and debug: FAIL
156      if (os == "android") and not webrender and not debug: FAIL
157      if (os == "mac") and not debug: FAIL
158      if (os == "android") and webrender: FAIL
159      if (os == "win") and not debug: FAIL
160      [FAIL, PASS]
161
162  [Name is set as expected for $a=test]
163    expected:
164      if (os == "linux") and not webrender and debug: FAIL
165      if (os == "linux") and webrender and not debug: FAIL
166      if (os == "android") and not webrender and not debug: FAIL
167      if (os == "win") and not debug: FAIL
168      if (os == "android") and webrender: FAIL
169      if (os == "mac") and not debug: FAIL
170      [FAIL, PASS]
171
172  [Name is set as expected for %a=test]
173    expected:
174      if (os == "android") and not webrender and not debug: FAIL
175      if (os == "linux") and webrender and not debug: FAIL
176      if (os == "linux") and not webrender and debug: FAIL
177      if (os == "android") and webrender: FAIL
178      if (os == "mac") and not debug: FAIL
179      if (os == "win") and not debug: FAIL
180      [FAIL, PASS]
181
182  [Name is set as expected for ^a=test]
183    expected:
184      if (os == "linux") and not webrender and debug: FAIL
185      if (os == "linux") and webrender and not debug: FAIL
186      if (os == "android") and not webrender and not debug: FAIL
187      if (os == "win") and not debug: FAIL
188      if (os == "android") and webrender: FAIL
189      if (os == "mac") and not debug: FAIL
190      [FAIL, PASS]
191
192  [Name is set as expected for &a=test]
193    expected:
194      if (os == "android") and not webrender and not debug: FAIL
195      if (os == "linux") and webrender and not debug: FAIL
196      if (os == "linux") and not webrender and debug: FAIL
197      if (os == "mac") and not debug: FAIL
198      if (os == "win") and not debug: FAIL
199      if (os == "android") and webrender: FAIL
200      [FAIL, PASS]
201
202  [Name is set as expected for *a=test]
203    expected:
204      if (os == "android") and not webrender and not debug: FAIL
205      if (os == "linux") and webrender and not debug: FAIL
206      if (os == "linux") and not webrender and debug: FAIL
207      if (os == "mac") and not debug: FAIL
208      if (os == "android") and webrender: FAIL
209      if (os == "win") and not debug: FAIL
210      [FAIL, PASS]
211
212  [Name is set as expected for (a=test]
213    expected:
214      if (os == "linux") and not webrender and debug: FAIL
215      if (os == "linux") and webrender and not debug: FAIL
216      if (os == "android") and not webrender and not debug: FAIL
217      if (os == "mac") and not debug: FAIL
218      if (os == "win") and not debug: FAIL
219      if (os == "android") and webrender: FAIL
220      [FAIL, PASS]
221
222  [Name is set as expected for )a=test]
223    expected:
224      if (os == "android") and not webrender and not debug: FAIL
225      if (os == "linux") and not webrender and debug: FAIL
226      if (os == "linux") and webrender and not debug: FAIL
227      if (os == "android") and webrender: FAIL
228      if (os == "win") and not debug: FAIL
229      if (os == "mac") and not debug: FAIL
230      [FAIL, PASS]
231
232  [Name is set as expected for -a=test]
233    expected:
234      if (os == "linux") and webrender and not debug: FAIL
235      if (os == "linux") and not webrender and debug: FAIL
236      if (os == "android") and not webrender and not debug: FAIL
237      if (os == "mac") and not debug: FAIL
238      if (os == "android") and webrender: FAIL
239      if (os == "win") and not debug: FAIL
240      [FAIL, PASS]
241
242  [Name is set as expected for _a=test]
243    expected:
244      if (os == "linux") and not webrender and debug: FAIL
245      if (os == "linux") and webrender and not debug: FAIL
246      if (os == "android") and not webrender and not debug: FAIL
247      if (os == "win") and not debug: FAIL
248      if (os == "mac") and not debug: FAIL
249      if (os == "android") and webrender: FAIL
250      [FAIL, PASS]
251
252  [Name is set as expected for +=test]
253    expected:
254      if (os == "linux") and webrender and not debug: FAIL
255      if (os == "linux") and not webrender and debug: FAIL
256      if (os == "android") and not webrender and not debug: FAIL
257      if (os == "mac") and not debug: FAIL
258      if (os == "android") and webrender: FAIL
259      if (os == "win") and not debug: FAIL
260      [FAIL, PASS]
261
262  [Name is set as expected for "a=test]
263    expected:
264      if (os == "android") and not webrender and not debug: FAIL
265      if (os == "linux") and not webrender and debug: FAIL
266      if (os == "linux") and webrender and not debug: FAIL
267      if (os == "android") and webrender: FAIL
268      if (os == "win") and not debug: FAIL
269      if (os == "mac") and not debug: FAIL
270      [FAIL, PASS]
271
272  [Name is set as expected for "a=b"=test]
273    expected:
274      if (os == "linux") and webrender and not debug: FAIL
275      if (os == "linux") and not webrender and debug: FAIL
276      if (os == "android") and not webrender and not debug: FAIL
277      if (os == "win") and not debug: FAIL
278      if (os == "mac") and not debug: FAIL
279      if (os == "android") and webrender: FAIL
280      [FAIL, PASS]
281
282  [URL-encoded cookie name is not decoded]
283    expected:
284      if (os == "linux") and webrender and not debug: FAIL
285      if (os == "win") and not debug: FAIL
286      if (os == "mac") and not debug: FAIL
287      if os == "android": FAIL
288      [FAIL, PASS]
289