Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: lib/src/prism/tests/languages/apacheconf/directive-block_feature.test

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <AuthnProviderAlias file file2>
2 </AuthnProviderAlias>
3 <AuthzProviderAlias ldap-group ldap-group-alias1 "cn=my-group,o=ctx">
4 </AuthzProviderAlias>
5 <Directory "/webpages/secure">
6 </Directory>
7 <DirectoryMatch "^/www/(.+/)?[0-9]{3}">
8 </DirectoryMatch>
9 <Else>
10 </Else>
11 <ElseIf "-R '10.0.0.0/8'">
12 </ElseIf>
13 <Files ~ "\.(gif|jpe?g|png)$">
14 </Files>
15 <FilesMatch ".+\.(gif|jpe?g|png)$">
16 </FilesMatch>
17 <If "-z req('Host')">
18 </If>
19 <IfDefine !MemCache>
20 </IfDefine>
21 <IfModule mod_rewrite.c>
22 </IfModule>
23 <IfVersion 2.1.0>
24 </IfVersion>
25 <Limit POST PUT DELETE>
26 </Limit>
27 <LimitExcept POST GET>
28 </LimitExcept>
29 <Location /private1>
30 </Location>
31 <LocationMatch "/(extra|special)/data">
32 </LocationMatch>
33 <Macro LocalAccessPolicy>
34 </Macro>
35 <Proxy "*">
36 </Proxy>
37 <RequireAll>
38 </RequireAll>
39 <RequireAny>
40 </RequireAny>
41 <RequireNone>
42 </RequireNone>
43 <VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80>
44 </VirtualHost>
45
46 ----------------------------------------------------
47
48 [
49 ["directive-block", [
50 ["directive-block", [
51 ["punctuation", "<"],
52 "AuthnProviderAlias"
53 ]],
54 ["directive-block-parameter", [
55 " file file2"
56 ]],
57 ["punctuation", ">"]
58 ]],
59 ["directive-block", [
60 ["directive-block", [
61 ["punctuation", "</"],
62 "AuthnProviderAlias"
63 ]],
64 ["punctuation", ">"]
65 ]],
66
67 ["directive-block", [
68 ["directive-block", [
69 ["punctuation", "<"],
70 "AuthzProviderAlias"
71 ]],
72 ["directive-block-parameter", [
73 " ldap-group ldap-group-alias1 ",
74 ["string", [
75 "\"cn=my-group,o=ctx\""
76 ]]
77 ]],
78 ["punctuation", ">"]
79 ]],
80 ["directive-block", [
81 ["directive-block", [
82 ["punctuation", "</"],
83 "AuthzProviderAlias"
84 ]],
85 ["punctuation", ">"]
86 ]],
87
88 ["directive-block", [
89 ["directive-block", [
90 ["punctuation", "<"],
91 "Directory"
92 ]],
93 ["directive-block-parameter", [
94 ["string", [
95 "\"/webpages/secure\""
96 ]]
97 ]],
98 ["punctuation", ">"]
99 ]],
100 ["directive-block", [
101 ["directive-block", [
102 ["punctuation", "</"],
103 "Directory"
104 ]],
105 ["punctuation", ">"]
106 ]],
107
108 ["directive-block", [
109 ["directive-block", [
110 ["punctuation", "<"],
111 "DirectoryMatch"
112 ]],
113 ["directive-block-parameter", [
114 ["string", [
115 "\"^/www/(.+/)?[0-9]{3}\""
116 ]]
117 ]],
118 ["punctuation", ">"]
119 ]],
120 ["directive-block", [
121 ["directive-block", [
122 ["punctuation", "</"],
123 "DirectoryMatch"
124 ]],
125 ["punctuation", ">"]
126 ]],
127
128 ["directive-block", [
129 ["directive-block", [
130 ["punctuation", "<"],
131 "Else"
132 ]],
133 ["punctuation", ">"]
134 ]],
135 ["directive-block", [
136 ["directive-block", [
137 ["punctuation", "</"],
138 "Else"
139 ]],
140 ["punctuation", ">"]
141 ]],
142
143 ["directive-block", [
144 ["directive-block", [
145 ["punctuation", "<"],
146 "ElseIf"
147 ]],
148 ["directive-block-parameter", [
149 ["string", [
150 "\"-R '10.0.0.0/8'\""
151 ]]
152 ]],
153 ["punctuation", ">"]
154 ]],
155 ["directive-block", [
156 ["directive-block", [
157 ["punctuation", "</"],
158 "ElseIf"
159 ]],
160 ["punctuation", ">"]
161 ]],
162
163 ["directive-block", [
164 ["directive-block", [
165 ["punctuation", "<"],
166 "Files"
167 ]],
168 ["directive-block-parameter", [
169 " ~ ",
170 ["string", [
171 "\"\\.(gif|jpe?g|png)$\""
172 ]]
173 ]],
174 ["punctuation", ">"]
175 ]],
176 ["directive-block", [
177 ["directive-block", [
178 ["punctuation", "</"],
179 "Files"
180 ]],
181 ["punctuation", ">"]
182 ]],
183
184 ["directive-block", [
185 ["directive-block", [
186 ["punctuation", "<"],
187 "FilesMatch"
188 ]],
189 ["directive-block-parameter", [
190 ["string", [
191 "\".+\\.(gif|jpe?g|png)$\""
192 ]]
193 ]],
194 ["punctuation", ">"]
195 ]],
196 ["directive-block", [
197 ["directive-block", [
198 ["punctuation", "</"],
199 "FilesMatch"
200 ]],
201 ["punctuation", ">"]
202 ]],
203
204 ["directive-block", [
205 ["directive-block", [
206 ["punctuation", "<"],
207 "If"
208 ]],
209 ["directive-block-parameter", [
210 ["string", [
211 "\"-z req('Host')\""
212 ]]
213 ]],
214 ["punctuation", ">"]
215 ]],
216 ["directive-block", [
217 ["directive-block", [
218 ["punctuation", "</"],
219 "If"
220 ]],
221 ["punctuation", ">"]
222 ]],
223
224 ["directive-block", [
225 ["directive-block", [
226 ["punctuation", "<"],
227 "IfDefine"
228 ]],
229 ["directive-block-parameter", [
230 " !MemCache"
231 ]],
232 ["punctuation", ">"]
233 ]],
234 ["directive-block", [
235 ["directive-block", [
236 ["punctuation", "</"],
237 "IfDefine"
238 ]],
239 ["punctuation", ">"]
240 ]],
241
242 ["directive-block", [
243 ["directive-block", [
244 ["punctuation", "<"],
245 "IfModule"
246 ]],
247 ["directive-block-parameter", [
248 " mod_rewrite.c"
249 ]],
250 ["punctuation", ">"]
251 ]],
252 ["directive-block", [
253 ["directive-block", [
254 ["punctuation", "</"],
255 "IfModule"
256 ]],
257 ["punctuation", ">"]
258 ]],
259
260 ["directive-block", [
261 ["directive-block", [
262 ["punctuation", "<"],
263 "IfVersion"
264 ]],
265 ["directive-block-parameter", [
266 " 2.1.0"
267 ]],
268 ["punctuation", ">"]
269 ]],
270 ["directive-block", [
271 ["directive-block", [
272 ["punctuation", "</"],
273 "IfVersion"
274 ]],
275 ["punctuation", ">"]
276 ]],
277
278 ["directive-block", [
279 ["directive-block", [
280 ["punctuation", "<"],
281 "Limit"
282 ]],
283 ["directive-block-parameter", [
284 " POST PUT DELETE"
285 ]],
286 ["punctuation", ">"]
287 ]],
288 ["directive-block", [
289 ["directive-block", [
290 ["punctuation", "</"],
291 "Limit"
292 ]],
293 ["punctuation", ">"]
294 ]],
295
296 ["directive-block", [
297 ["directive-block", [
298 ["punctuation", "<"],
299 "LimitExcept"
300 ]],
301 ["directive-block-parameter", [
302 " POST GET"
303 ]],
304 ["punctuation", ">"]
305 ]],
306 ["directive-block", [
307 ["directive-block", [
308 ["punctuation", "</"],
309 "LimitExcept"
310 ]],
311 ["punctuation", ">"]
312 ]],
313
314 ["directive-block", [
315 ["directive-block", [
316 ["punctuation", "<"],
317 "Location"
318 ]],
319 ["directive-block-parameter", [
320 " /private1"
321 ]],
322 ["punctuation", ">"]
323 ]],
324 ["directive-block", [
325 ["directive-block", [
326 ["punctuation", "</"],
327 "Location"
328 ]],
329 ["punctuation", ">"]
330 ]],
331
332 ["directive-block", [
333 ["directive-block", [
334 ["punctuation", "<"],
335 "LocationMatch"
336 ]],
337 ["directive-block-parameter", [
338 ["string", [
339 "\"/(extra|special)/data\""
340 ]]
341 ]],
342 ["punctuation", ">"]
343 ]],
344 ["directive-block", [
345 ["directive-block", [
346 ["punctuation", "</"],
347 "LocationMatch"
348 ]],
349 ["punctuation", ">"]
350 ]],
351
352 ["directive-block", [
353 ["directive-block", [
354 ["punctuation", "<"],
355 "Macro"
356 ]],
357 ["directive-block-parameter", [
358 " LocalAccessPolicy"
359 ]],
360 ["punctuation", ">"]
361 ]],
362 ["directive-block", [
363 ["directive-block", [
364 ["punctuation", "</"],
365 "Macro"
366 ]],
367 ["punctuation", ">"]
368 ]],
369
370 ["directive-block", [
371 ["directive-block", [
372 ["punctuation", "<"],
373 "Proxy"
374 ]],
375 ["directive-block-parameter", [
376 ["string", [
377 "\"*\""
378 ]]
379 ]],
380 ["punctuation", ">"]
381 ]],
382 ["directive-block", [
383 ["directive-block", [
384 ["punctuation", "</"],
385 "Proxy"
386 ]],
387 ["punctuation", ">"]
388 ]],
389
390 ["directive-block", [
391 ["directive-block", [
392 ["punctuation", "<"],
393 "RequireAll"
394 ]],
395 ["punctuation", ">"]
396 ]],
397 ["directive-block", [
398 ["directive-block", [
399 ["punctuation", "</"],
400 "RequireAll"
401 ]],
402 ["punctuation", ">"]
403 ]],
404
405 ["directive-block", [
406 ["directive-block", [
407 ["punctuation", "<"],
408 "RequireAny"
409 ]],
410 ["punctuation", ">"]
411 ]],
412 ["directive-block", [
413 ["directive-block", [
414 ["punctuation", "</"],
415 "RequireAny"
416 ]],
417 ["punctuation", ">"]
418 ]],
419
420 ["directive-block", [
421 ["directive-block", [
422 ["punctuation", "<"],
423 "RequireNone"
424 ]],
425 ["punctuation", ">"]
426 ]],
427 ["directive-block", [
428 ["directive-block", [
429 ["punctuation", "</"],
430 "RequireNone"
431 ]],
432 ["punctuation", ">"]
433 ]],
434
435 ["directive-block", [
436 ["directive-block", [
437 ["punctuation", "<"],
438 "VirtualHost"
439 ]],
440 ["directive-block-parameter", [
441 " [2001",
442 ["punctuation", ":"],
443 "db8",
444 ["punctuation", ":"],
445 ["punctuation", ":"],
446 "a00",
447 ["punctuation", ":"],
448 "20ff",
449 ["punctuation", ":"],
450 "fea7",
451 ["punctuation", ":"],
452 "ccea]",
453 ["punctuation", ":"],
454 "80"
455 ]],
456 ["punctuation", ">"]
457 ]],
458 ["directive-block", [
459 ["directive-block", [
460 ["punctuation", "</"],
461 "VirtualHost"
462 ]],
463 ["punctuation", ">"]
464 ]]
465 ]
466
467 ----------------------------------------------------
468
469 Checks for directive blocks.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698