summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/Format/WCSCapabilities.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/Format/WCSCapabilities.html
parente763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff)
downloadpostrunner-e30f267181d990947e67909de4809fa941698c85.zip
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/Format/WCSCapabilities.html')
-rw-r--r--misc/openlayers/tests/Format/WCSCapabilities.html43
1 files changed, 0 insertions, 43 deletions
diff --git a/misc/openlayers/tests/Format/WCSCapabilities.html b/misc/openlayers/tests/Format/WCSCapabilities.html
deleted file mode 100644
index b3e90b6..0000000
--- a/misc/openlayers/tests/Format/WCSCapabilities.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<head>
- <script src="../OLLoader.js"></script>
- <script type="text/javascript">
-
- function test_read(t) {
- t.plan(4);
-
- var _v1_0_0 = OpenLayers.Format.WCSCapabilities.v1_0_0.prototype.read;
- var _v1_1_0 = OpenLayers.Format.WCSCapabilities.v1_1_0.prototype.read;
-
- var parser = new OpenLayers.Format.WCSCapabilities();
-
- // version 1.0.0
- var text =
- '<?xml version="1.0" encoding="UTF-8"?>' +
- '<wcs:WCS_Capabilities version="1.0.0" xmlns:wcs="http://www.opengis.net/wcs"></wcs:WCS_Capabilities>';
- OpenLayers.Format.WCSCapabilities.v1_0_0.prototype.read = function() {
- t.ok(true, "Version 1.0.0 detected");
- return {};
- }
- var res = parser.read(text);
- t.eq(res.version, "1.0.0", "version 1.0.0 written to result object");
- OpenLayers.Format.WCSCapabilities.v1_1_0.prototype.read = _v1_1_0;
-
- // version 1.1.0
- var text =
- '<?xml version="1.0" encoding="UTF-8"?>' +
- '<wcs:WCS_Capabilities version="1.1.0" xmlns:wcs="http://www.opengis.net/wcs/1.1"></wcs:WCS_Capabilities>';
- OpenLayers.Format.WCSCapabilities.v1_1_0.prototype.read = function() {
- t.ok(true, "Version 1.1.0 detected");
- return {};
- }
- var res = parser.read(text);
- t.eq(res.version, "1.1.0", "version 1.1.0 written to result object");
- OpenLayers.Format.WCSCapabilities.v1_1_0.prototype.read = _v1_1_0;
- }
-
- </script>
-</head>
-<body>
-</body>
-</html>