these two files were erroneously not committed as part of [8005], thanks Erik for catching this (See #1699)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8008 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
23
tests/Protocol/SQL.html
Normal file
23
tests/Protocol/SQL.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<head>
|
||||
<script src="../../lib/OpenLayers.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
function test_initialize(t) {
|
||||
t.plan(3);
|
||||
var options = {tableName: 'my_features',
|
||||
databaseName: 'my_database_name'}
|
||||
var protocol = new OpenLayers.Protocol.SQL(options);
|
||||
|
||||
t.ok(protocol instanceof OpenLayers.Protocol.SQL,
|
||||
"new OpenLayers.Protocol.SQL returns object");
|
||||
|
||||
t.eq(protocol.tableName, options.tableName, "tableName property is set");
|
||||
t.eq(protocol.databaseName, options.databaseName, "databaseName property is set");
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user