Sha256: cebf506d4cbce2628228491fc9006b849377299fe9e9deaac5bc8b772c301907

Contents?: true

Size: 1.22 KB

Versions: 12

Compression:

Stored size: 1.22 KB

Contents

<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>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/tests/Console.html
postrunner-0.0.9 misc/openlayers/tests/Console.html
postrunner-0.0.8 misc/openlayers/tests/Console.html
postrunner-0.0.7 misc/openlayers/tests/Console.html
postrunner-0.0.6 misc/openlayers/tests/Console.html
postrunner-0.0.5 misc/openlayers/tests/Console.html
postrunner-0.0.4 misc/openlayers/tests/Console.html
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/tests/Console.html
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/tests/Console.html
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/tests/Console.html
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/tests/Console.html
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/tests/Console.html