Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test3
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 filter js-annoyances
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 html-annoyances filter should modify:
19
20 # pcrs command 1:
21
22 <a href="http://www.example.org/" resizable="no">click here!</a>
23 <a href="http://www.example.org/" resizable='0'>click here!</a>
24
25 # pcrs command 2:
26
27 <a href="http://www.example.org/" location="no">click here!</a>
28 <a href="http://www.example.org/" location='0'>click here!</a>
29
30 # pcrs command 3:
31
32 <a href="http://www.example.org/" status="no">click here!</a>
33 <a href="http://www.example.org/" status='0'>click here!</a>
34
35 # pcrs command 4:
36
37 <a href="http://www.example.org/" scrolling="no">click here!</a>
38 <a href="http://www.example.org/" scrolling='0'>click here!</a>
39
40 # pcrs command 5:
41
42 <a href="http://www.example.org/" menubar="no">click here!</a>
43 <a href="http://www.example.org/" menubar='0'>click here!</a>
44
45 # pcrs command 6:
46
47 <blink>Blink! Blink! Blink!</blink>
48 <marquee>Annoying marquee text!</marquee>
49 </data>
50 </reply>
51
52 <proxy-reply>
53 <data>
54 HTTP/1.1 200 OK\r
55 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
56 Connection: close\r
57 Content-Type: text/html\r
58 X-Control: swsclose\r
59 Content-Length: 880\r
60 \r
61 # Here are some strings the html-annoyances filter should modify:
62
63 # pcrs command 1:
64
65 <a href="http://www.example.org/" resizable="yes">click here!</a>
66 <a href="http://www.example.org/" resizable='yes'>click here!</a>
67
68 # pcrs command 2:
69
70 <a href="http://www.example.org/" location="yes">click here!</a>
71 <a href="http://www.example.org/" location='yes'>click here!</a>
72
73 # pcrs command 3:
74
75 <a href="http://www.example.org/" status="yes">click here!</a>
76 <a href="http://www.example.org/" status='yes'>click here!</a>
77
78 # pcrs command 4:
79
80 <a href="http://www.example.org/" scrolling="auto">click here!</a>
81 <a href="http://www.example.org/" scrolling='auto'>click here!</a>
82
83 # pcrs command 5:
84
85 <a href="http://www.example.org/" menubar="yes">click here!</a>
86 <a href="http://www.example.org/" menubar='yes'>click here!</a>
87
88 # pcrs command 6:
89
90 Blink! Blink! Blink!
91 Annoying marquee text!
92 </data>
93 </proxy-reply>
94
95
96 <client>
97 <server>
98 http
99 </server>
100 <name>
101 +filter{html-annoyances}
102 </name>
103 <features>
104 proxy
105 </features>
106 <command>
107 http://%HOSTIP:%HTTPPORT/html-annoyances/%TESTNUMBER
108 </command>
109 </client>
110
111 <verify>
112 <protocol>
113 GET /html-annoyances/%TESTNUMBER HTTP/1.1\r
114 Host: %HOSTIP:%HTTPPORT\r
115 User-Agent: curl/%VERSION\r
116 Accept: */*\r
117 Connection: close\r
118 \r
119 </protocol>
120 </verify>
121 </testcase>