]> dev.renevier.net Git - syp.git/blob - openlayers/tests/Format/Filter.html
initial commit
[syp.git] / openlayers / tests / Format / 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 format = new OpenLayers.Format.Filter(options); 
11         t.ok(format instanceof OpenLayers.Format.Filter, 
12              "new OpenLayers.Format.Filter returns object" ); 
13         t.eq(format.foo, "bar", "constructor sets options correctly"); 
14         t.eq(typeof format.read, "function", "format has a read function"); 
15     }
16
17     </script> 
18 </head> 
19 <body> 
20 </body> 
21 </html>