Files
openlayers/tests/test_Util.html
2006-05-18 13:42:14 +00:00

60 lines
1.4 KiB
HTML

<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
var map;
function test_01_Util_getImagesLocation (t) {
t.plan( 1 );
t.ok( OpenLayers.Util.getImagesLocation(), "../img/",
"getImagesLocation()" );
}
/*
function test_01_Util_Strings(t) {
//String.prototype.startsWith = function(sStart){
//String.prototype.trim = function() {
}
function test_01_Util_Array(t) {
//Array.prototype.append = function(item) {
//Array.prototype.prepend = function(item) {
//Array.prototype.remove = function(item) {
//Array.prototype.copyOf
//Array.prototype.clear
}
function test_01_Util_createDiv(t) {
t.plan( 1 );
var div =
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar&chicken=1.5", "getParameterString returns correctly");
}
function test_01_Util_createImage(t) {
}
function test_01_Util_applyDefaults(t) {
}
*/
function test_01_Util_getParameterString(t) {
t.plan( 1 );
var params = { foo: "bar",
chicken: 1.5
}
t.eq( OpenLayers.Util.getParameterString(params), "foo=bar&chicken=1.5", "getParameterString returns correctly");
}
// -->
</script>
</head>
<body>
<div id="map" style="width: 1024px; height: 512px;"/>
</body>
</html>