]> dev.renevier.net Git - syp.git/blob - openlayers/tests/Filter.html
initial commit
[syp.git] / openlayers / tests / Filter.html
1 <html> 
2 <head> 
3     <script src="../lib/OpenLayers.js"></script> 
4     <script type="text/javascript">
5
6     function test_initialize(t) { 
7         t.plan(3); 
8          
9         var options = {'foo': 'bar'}; 
10         var filter = new OpenLayers.Filter(options); 
11         t.ok(filter instanceof OpenLayers.Filter, 
12              "new OpenLayers.Filter returns object" ); 
13         t.eq(filter.foo, "bar", "constructor sets options correctly"); 
14         t.eq(typeof filter.evaluate, "function", "filter has an evaluate function"); 
15     }
16
17     </script> 
18 </head> 
19 <body> 
20 </body> 
21 </html>