]> dev.renevier.net Git - syp.git/blob - openlayers/tests/Protocol/SQL.html
fix broken script in wizard.php
[syp.git] / openlayers / tests / Protocol / SQL.html
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         var options = {tableName: 'my_features', 
9                        databaseName: 'my_database_name'}
10         var protocol = new OpenLayers.Protocol.SQL(options);
11
12         t.ok(protocol instanceof OpenLayers.Protocol.SQL,
13              "new OpenLayers.Protocol.SQL returns object");
14
15         t.eq(protocol.tableName, options.tableName, "tableName property is set");
16         t.eq(protocol.databaseName, options.databaseName, "databaseName property is set");
17     }
18     
19   </script>
20 </head>
21 <body>
22 </body>
23 </html>