~zubairassad89/sahana-eden/vms_gsoc

« back to all changes in this revision

Viewing changes to static/mfbase/openlayers/tests/Format.html

  • Committer: Fran Boon
  • Date: 2008-12-09 22:35:23 UTC
  • Revision ID: flavour@partyvibe.com-20081209223523-fcs5k95jjk0uqo0z
Initial import of work done so far

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_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>