3
<script src="../lib/OpenLayers.js"></script>
4
<script type="text/javascript">
6
function test_Format_constructor(t) {
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");