Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test7
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter all-popups
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 200 OK\r
13 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
14 Connection: close\r
15 Content-Type: text/html\r
16 X-Control: swsclose\r
17 \r
18 # Here are some strings the all-popups filter should modify:
19
20 # pcrs command 1:
21
22 + mapwindow.open(
23 + window.open(
24 + this.open(
25 + parent.open(
26
27 # pcrs command 2:
28
29  target  = "blank"
30  target  =   'blank'
31  target  =   "new"
32  target  =   'new'
33 </data>
34 </reply>
35
36 <proxy-reply>
37 <data>
38 HTTP/1.1 200 OK\r
39 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
40 Connection: close\r
41 Content-Type: text/html\r
42 X-Control: swsclose\r
43 Content-Length: 178\r
44 \r
45 # Here are some strings the all-popups filter should modify:
46
47 # pcrs command 1:
48
49 + mapwindow.concat(
50 + window.concat(
51 + this.concat(
52 + parent.concat(
53
54 # pcrs command 2:
55
56  
57  
58  
59  
60 </data>
61 </proxy-reply>
62
63
64 <client>
65 <server>
66 http
67 </server>
68 <name>
69 +filter{all-popups}
70 </name>
71 <features>
72 proxy
73 </features>
74 <command>
75 http://%HOSTIP:%HTTPPORT/all-popups/%TESTNUMBER
76 </command>
77 </client>
78
79 <verify>
80 <protocol>
81 GET /all-popups/%TESTNUMBER HTTP/1.1\r
82 Host: %HOSTIP:%HTTPPORT\r
83 User-Agent: curl/%VERSION\r
84 Accept: */*\r
85 Connection: close\r
86 \r
87 </protocol>
88 </verify>
89 </testcase>