Revert r6710: The new popup coe is going to need to change tests, so this

needs to wait.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@6711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-03-31 02:12:03 +00:00
parent 02bbd43687
commit 69ca5c7fdd
118 changed files with 20 additions and 1 deletions

39
tests/test_Console.html Normal file
View File

@@ -0,0 +1,39 @@
<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_Console(t) {
/**
* These tests only assure that OpenLayers works when not
* in debug mode. It means that calls to OpenLayers.Console
* will not do anything in this case. When OpenLayers is in
* debug mode, we assume that the Firebug extension or Firebug Lite
* works as advertised.
*/
// supported OpenLayers.Console methods
var methods = ['log', 'debug', 'info', 'warn', 'error', 'assert',
'dir', 'dirxml', 'trace', 'group', 'groupEnd', 'time',
'timeEnd', 'profile', 'profileEnd', 'count'];
t.plan(methods.length * 2);
var nothing, method;
for(var i=0; i<methods.length; ++i) {
method = OpenLayers.Console[methods[i]];
t.ok(method,
"OpenLayers.Console." + methods[i] + " exists");
nothing = OpenLayers.Console[methods[i]]();
t.eq(nothing, null,
"OpenLayers.Console." + methods[i] + "() " +
"call is harmless when not in debug mode");
}
}
</script>
</head>
<body>
</body>
</html>