summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/deprecated/Ajax.html
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
committerChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
commite30f267181d990947e67909de4809fa941698c85 (patch)
tree46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/tests/deprecated/Ajax.html
parente763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff)
downloadpostrunner-e30f267181d990947e67909de4809fa941698c85.zip
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/deprecated/Ajax.html')
-rw-r--r--misc/openlayers/tests/deprecated/Ajax.html28
1 files changed, 0 insertions, 28 deletions
diff --git a/misc/openlayers/tests/deprecated/Ajax.html b/misc/openlayers/tests/deprecated/Ajax.html
deleted file mode 100644
index e73e80c..0000000
--- a/misc/openlayers/tests/deprecated/Ajax.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<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>