3 <script src="../../lib/OpenLayers.js"></script>
4 <script type="text/javascript">
6 function test_initialize(t) {
8 var options = {tableName: 'my_features',
9 databaseName: 'my_database_name'}
10 var protocol = new OpenLayers.Protocol.SQL(options);
12 t.ok(protocol instanceof OpenLayers.Protocol.SQL,
13 "new OpenLayers.Protocol.SQL returns object");
15 t.eq(protocol.tableName, options.tableName, "tableName property is set");
16 t.eq(protocol.databaseName, options.databaseName, "databaseName property is set");