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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user