~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/tests/Format/Filter.html

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>