Add test scenario content-filters
[privoxy.git] / tests / cts / content-filters / data / test2
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
13 Date: Thu, 22 Jul 2010 11:22:33 GMT
14 Connection: close
15 Content-Type: text/html
16 X-Control: swsclose
17
18 # Here are some strings the js-events filter should modify:
19
20 # pcrs command 1:
21
22 onmouseover
23 onmouseout
24 onmousedown
25 onmouseup
26 onmousemove
27
28 event.mouseover
29 event.mouseout
30 event.mousedown
31 event.mouseup
32 event.mousemove
33
34 onload
35 onunload
36 oncontextmenu
37 onselectstart
38
39 event.load
40 event.unload
41 event.contextmenu
42 event.selectstart
43
44 # pcrs command 2:
45
46 alert (
47 confirm (
48
49 # pcrs command 3:
50
51 settimeout(
52 setinterval(
53 </data>
54 </reply>
55
56 <proxy-reply>
57 <data>
58 HTTP/1.1 200 OK
59 Date: Thu, 22 Jul 2010 11:22:33 GMT
60 Connection: close
61 Content-Type: text/html
62 X-Control: swsclose
63 Content-Length: 263
64
65 # Here are some strings the js-events filter should modify:
66
67 # pcrs command 1:
68
69 never
70 never
71 never
72 never
73 never
74
75 never
76 never
77 never
78 never
79 never
80
81 never
82 never
83 never
84 never
85
86 never
87 never
88 never
89 never
90
91 # pcrs command 2:
92
93 concat(
94 concat(
95
96 # pcrs command 3:
97
98 concat(
99 concat(
100 </data>
101 </proxy-reply>
102
103
104 <client>
105 <server>
106 http
107 </server>
108 <name>
109 +filter{js-events}
110 </name>
111 <features>
112 proxy
113 </features>
114 <command>
115 http://%HOSTIP:%HTTPPORT/js-events/%TESTNUMBER
116 </command>
117 </client>
118
119 <verify>
120 <protocol>
121 GET /js-events/%TESTNUMBER HTTP/1.1\r
122 Host: %HOSTIP:%HTTPPORT\r
123 User-Agent: curl/%VERSION\r
124 Accept: */*\r
125 Connection: close\r
126 \r
127 </protocol>
128 </verify>
129 </testcase>