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:
Éric Lemoine
2008-09-12 16:06:55 +00:00
parent 7a5b401604
commit 8d8ee2087f
2 changed files with 110 additions and 0 deletions

23
tests/Protocol/SQL.html Normal file
View 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>