[Commits] r1416 - core/trunk/geoext/tests/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Mon Oct 12 13:48:51 CEST 2009
Author: ahocevar
Date: 2009-10-12 13:48:51 +0200 (Mon, 12 Oct 2009)
New Revision: 1416
Modified:
core/trunk/geoext/tests/lib/GeoExt/data/WMSCapabilitiesReader.html
Log:
re-added test for correct id that was introduced with #150 and accidently removed with #157 (see #157)
Modified: core/trunk/geoext/tests/lib/GeoExt/data/WMSCapabilitiesReader.html
===================================================================
--- core/trunk/geoext/tests/lib/GeoExt/data/WMSCapabilitiesReader.html 2009-10-12 10:55:43 UTC (rev 1415)
+++ core/trunk/geoext/tests/lib/GeoExt/data/WMSCapabilitiesReader.html 2009-10-12 11:48:51 UTC (rev 1416)
@@ -32,7 +32,7 @@
'field values set from configuration are correct');
}
function test_read(t) {
- t.plan(39);
+ t.plan(40);
// test a reader with the only two default LayerRecord fields
var reader = new GeoExt.data.WMSCapabilitiesReader({}, []);
@@ -42,7 +42,11 @@
//1 test
t.eq(records.records[0].fields.items.length, 2, 'LayerRecord with 2 default fields');
- var record = records.records[2];
+ var record = records.records[2];
+
+ //1 test -- testing value of record id
+ t.ok(record.id == record.get("layer").id, "[2] correct record id");
+
//2 tests -- testing the fields of a record
t.eq(record.get("title"), "tiger:tiger_roads", "correct layer title");
t.eq(record.get("abstract"), undefined, "correct undefined abstract which is not part of fields");
More information about the Commits
mailing list