Sha256: abd5f6f753848497b00d7b80b6dcd48ea208429dddccdc93434599793bebaab1

Contents?: true

Size: 931 Bytes

Versions: 12

Compression:

Stored size: 931 Bytes

Contents

<html>
<head>
  <script src="../OLLoader.js"></script>
  <script type="text/javascript">
      function test_getParameters(t) {
          t.plan(4);

          var c = new OpenLayers.Control.ArgParser(), p;

          p = c.getParameters('http://example.com?fook=foov&bark=barv');
          t.eq(p, {fook: 'foov', bark: 'barv'}, 'a) params are correct');

          p = c.getParameters('http://example.com#fook=foov&bark=barv');
          t.eq(p, {fook: 'foov', bark: 'barv'}, 'b) params are correct');

          p = c.getParameters('http://example.com?a=b&b=c#fook=foov&bark=barv');
          t.eq(p, {a: 'b', b: 'c', fook: 'foov', bark: 'barv'},
               'c) params are correct');

          p = c.getParameters('http://example.com?a=b&b=c&fook=a&bark=b#fook=foov&bark=barv');
          t.eq(p, {a: 'b', b: 'c', fook: 'foov', bark: 'barv'},
               'd) params are correct');
        }
    </script>
</head>
</html>

Version data entries

12 entries across 12 versions & 2 rubygems

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