Skip to content

Commit

Permalink
Re-activated ST_INTERSECTS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
metaodi committed May 30, 2012
1 parent 9fb0406 commit f2d1ef7
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions test/js/lib/TestGftLib.js
Expand Up @@ -595,13 +595,11 @@ asyncTest("createView + INSERT", 3, function() {
gft.createView(testCb, {viewName:'test_view', query:"select Text from " + this.testGftInsertTable + " where Number = 33"});
});

/*
asyncTest("SELECT after INSERT with ST_INTERSECTS (one column adress)", 4, function() {
asyncTest("SELECT after INSERT with ST_INTERSECTS (one column address)", 4, function() {
var gft = this.gft;
var tableId = '10k6S5HN2iF1tWCIytST3Nhq7e5s-Hyakma_IlXE';
var tableId = '1HAeyEcDczvFxltrF_iLwh8-hG5ONYpaKzQUkByM';
var rowId = null;

var locStr = 'Rathausstrasse 8, 8640 Rapperswil-Jona, Switzerland';
var lat = 47.22645443980465;
var lng = 8.81760273809823;
Expand All @@ -623,7 +621,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column adress)", 4, funct
}

var selectCb = function(data,status) {
if (data === null) {
if (data === null || data.error !== undefined) {
ok(false, "insert failed with status: " + status);
start();
return;
Expand All @@ -640,7 +638,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column adress)", 4, funct

asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and space)", 4, function() {
var gft = this.gft;
var tableId = '10k6S5HN2iF1tWCIytST3Nhq7e5s-Hyakma_IlXE';
var tableId = '1TizwCNXNEBw0RIuoxnUJvcKmNwJ97L6M_paZXFE';
var rowId = null;

var lat = 47.22398443540521;
Expand All @@ -664,7 +662,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and space)
}

var selectCb = function(data,status) {
if (data === null) {
if (data === null || data.error !== undefined) {
ok(false, "insert failed with status: " + status);
start();
return;
Expand All @@ -681,7 +679,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and space)

asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and comma)", 4, function() {
var gft = this.gft;
var tableId = '10k6S5HN2iF1tWCIytST3Nhq7e5s-Hyakma_IlXE';
var tableId = '1kPCVQ7Soi85GkUmBVGbs_lrvxahxXj341vjxW44';
var rowId = null;

var lat = 47.22398443540521;
Expand All @@ -705,7 +703,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and comma)
}

var selectCb = function(data,status) {
if (data === null) {
if (data === null || data.error !== undefined) {
ok(false, "insert failed with status: " + status);
start();
return;
Expand All @@ -722,7 +720,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column lat/lng and comma)

asyncTest("SELECT after INSERT with ST_INTERSECTS (one column KML)", 4, function() {
var gft = this.gft;
var tableId = '10k6S5HN2iF1tWCIytST3Nhq7e5s-Hyakma_IlXE';
var tableId = '1ebcorZ-YwcZw0SA604bO4bjWMQ621ZaF3ve8IDA';
var rowId = null;

var lat = 47.22398443540521;
Expand All @@ -746,7 +744,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (one column KML)", 4, function
}

var selectCb = function(data,status) {
if (data === null) {
if (data === null || data.error !== undefined) {
ok(false, "insert failed with status: " + status);
start();
return;
Expand Down Expand Up @@ -786,7 +784,7 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (two column lat/lng)", 4, func
}

var selectCb = function(data,status) {
if (data === null) {
if (data === null || data.error !== undefined) {
ok(false, "insert failed with status: " + status);
start();
return;
Expand All @@ -799,5 +797,4 @@ asyncTest("SELECT after INSERT with ST_INTERSECTS (two column lat/lng)", 4, func
}

gft.execInsert(selectCb, {table:tableId, fields:['Text','Number','latitude','longitude','Date'], values:['Insert by Unit-Test for ST_INTERSECTS (two column lat/lng)', 94, lat, lng, getDateString()]});
});
*/
});

0 comments on commit f2d1ef7

Please sign in to comment.