]> dev.renevier.net Git - syp.git/blob - openlayers/tests/Format.html
initial commit
[syp.git] / openlayers / tests / Format.html
1 <html>
2 <head>
3   <script src="../lib/OpenLayers.js"></script>
4   <script type="text/javascript">
5
6     function test_Format_constructor(t) {
7         t.plan(5);
8     
9         var options = {'foo': 'bar'};
10         var format = new OpenLayers.Format(options);
11         t.ok(format instanceof OpenLayers.Format,
12              "new OpenLayers.Format 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         t.eq(typeof format.write, "function", "format has a write function");
16         t.eq(format.options, options, "format.options correctly set");
17     }
18
19   </script>
20 </head>
21 <body>
22 </body>
23 </html>