summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/Console.html
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-12 21:56:44 +0200
committerChris Schlaeger <chris@linux.com>2014-08-12 21:56:44 +0200
commitea346a785dc1b3f7c156f6fc33da634e1f1a627b (patch)
treeaf67530553d20b6e82ad60fd79593e9c4abf5565 /misc/openlayers/tests/Console.html
parent59741cd535c47f25971bf8c32b25da25ceadc6d5 (diff)
downloadpostrunner-0.0.4.zip
Adding jquery, flot and openlayers to be included with the GEM.v0.0.4
Diffstat (limited to 'misc/openlayers/tests/Console.html')
-rw-r--r--misc/openlayers/tests/Console.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/misc/openlayers/tests/Console.html b/misc/openlayers/tests/Console.html
new file mode 100644
index 0000000..48b27c2
--- /dev/null
+++ b/misc/openlayers/tests/Console.html
@@ -0,0 +1,39 @@
+<html>
+<head>
+ <script src="OLLoader.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>