Sha256: 39186bb6311964e61bf15cd29e0abc08a7d71846207dfa4709b44b89e9e5a9a4

Contents?: true

Size: 978 Bytes

Versions: 7

Compression:

Stored size: 978 Bytes

Contents

<html>
<head>
  <script src="../OLLoader.js"></script>
  <script src="../../lib/deprecated.js"></script>
  <script type="text/javascript">

    function test_Ajax_loadUrl(t) {
        t.plan(5);
        var _get = OpenLayers.Request.GET;
        var caller = {};
        var onComplete = function() {};
        var onFailure = function() {};
        var params = {};
        OpenLayers.Request.GET = function(config) {
            t.eq(config.url, "http://example.com/?format=image+kml", "correct url")
            t.eq(config.params, params, "correct params");
            t.eq(config.scope, caller, "correct scope");
            t.ok(config.success === onComplete, "correct success callback");
            t.ok(config.failure === onFailure, "correct failure callback");
        };
        OpenLayers.loadURL("http://example.com/?format=image+kml", params, caller, onComplete, onFailure);
        OpenLayers.Request.GET = _get;
    }
  </script>
</head>
<body>
</body>
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.9 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.8 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.7 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.6 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.5 misc/openlayers/tests/deprecated/Ajax.html
postrunner-0.0.4 misc/openlayers/tests/deprecated/Ajax.html