add test for OpenLayers.Util.createUniqueID()

git-svn-id: http://svn.openlayers.org/trunk/openlayers@970 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-18 16:17:01 +00:00
parent 0a1529e00a
commit ab98af7635

View File

@@ -393,6 +393,15 @@
t.eq(uObj[bKey.toUpperCase()], bValue, "new uppercase value present");
}
function test_10_Util_createUniqueID(t) {
t.plan(2);
var id = OpenLayers.Util.createUniqueID();
t.ok( id.startsWith("id_"), "default OpenLayers.Util.createUniqueID starts id correctly");
var id = OpenLayers.Util.createUniqueID("chicken");
t.ok( id.startsWith("chicken"), "OpenLayers.Util.createUniqueID starts id correctly");
}
// -->
</script>
</head>