From 233600a284a324fa0c8b13499aa6ed7be1f9dfa6 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 18 May 2006 13:41:19 +0000 Subject: [PATCH] new util test git-svn-id: http://svn.openlayers.org/trunk/openlayers@148 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Util.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tests/test_Util.html b/tests/test_Util.html index 384c072d32..8450253749 100644 --- a/tests/test_Util.html +++ b/tests/test_Util.html @@ -8,6 +8,48 @@ 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.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.getParameterString(params), "foo=bar&chicken=1.5", "getParameterString returns correctly"); + } + + + // -->