Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test13
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter jumping-windows
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 jumping-windows filter should filter:
19
20 +window.moveto(
21 +this.moveto(
22 +self.moveto(
23
24 +window.moveby(
25 +this.moveby(
26 +self.moveby(
27
28 +window.resizeto(
29 +this.resizeto(
30 +self.resizeto(
31 </data>
32 </reply>
33
34 <proxy-reply>
35 <data>
36 HTTP/1.1 200 OK\r
37 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
38 Connection: close\r
39 Content-Type: text/html\r
40 X-Control: swsclose\r
41 Content-Length: 177\r
42 \r
43 # Here are some strings the jumping-windows filter should filter:
44
45 +''.concat(
46 +''.concat(
47 +''.concat(
48
49 +''.concat(
50 +''.concat(
51 +''.concat(
52
53 +''.concat(
54 +''.concat(
55 +''.concat(
56 </data>
57 </proxy-reply>
58
59 <client>
60 <server>
61 http
62 </server>
63 <name>
64 +filter{jumping-windows}
65 </name>
66 <features>
67 proxy
68 </features>
69 <command>
70 http://%HOSTIP:%HTTPPORT/jumping-windows/%TESTNUMBER
71 </command>
72 </client>
73
74 <verify>
75 <protocol>
76 GET /jumping-windows/%TESTNUMBER HTTP/1.1\r
77 Host: %HOSTIP:%HTTPPORT\r
78 User-Agent: curl/%VERSION\r
79 Accept: */*\r
80 Connection: close\r
81 \r
82 </protocol>
83 </verify>
84 </testcase>