OpenLayers OpenLayers

root/trunk/openlayers/tests/Protocol/SQL.html

Revision 8008, 0.7 kB (checked in by elemoine, 4 months ago)

these two files were erroneously not committed as part of [8005], thanks Erik for catching this (See #1699)

Line 
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>
Note: See TracBrowser for help on using the browser.