diff options
author | Chris Schlaeger <chris@linux.com> | 2015-10-17 21:36:38 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2015-10-17 21:36:38 +0200 |
commit | e30f267181d990947e67909de4809fa941698c85 (patch) | |
tree | 46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/tests/Format/OWSCommon/v1_1_0.html | |
parent | e763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff) | |
download | postrunner-e30f267181d990947e67909de4809fa941698c85.zip |
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/Format/OWSCommon/v1_1_0.html')
-rw-r--r-- | misc/openlayers/tests/Format/OWSCommon/v1_1_0.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/misc/openlayers/tests/Format/OWSCommon/v1_1_0.html b/misc/openlayers/tests/Format/OWSCommon/v1_1_0.html deleted file mode 100644 index 1cdf7ee..0000000 --- a/misc/openlayers/tests/Format/OWSCommon/v1_1_0.html +++ /dev/null @@ -1,34 +0,0 @@ -<html> -<head> - <script src="../../OLLoader.js"></script> - <script type="text/javascript"> - - function test_read_exception(t) { - t.plan(6); - var text = '<?xml version="1.0" encoding="UTF-8"?>' + -'<ows:ExceptionReport xml:lang="en" version="1.1.0"' + -' xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"' + -' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1">' + -' <ows:Exception locator="foo" exceptionCode="InvalidParameterValue">' + -' <ows:ExceptionText>Update error: Error occured updating features</ows:ExceptionText>' + -' <ows:ExceptionText>Second exception line</ows:ExceptionText>' + -' </ows:Exception>' + -'</ows:ExceptionReport>'; - - var format = new OpenLayers.Format.OWSCommon(); - var result = format.read(text); - var report = result.exceptionReport; - t.eq(report.version, "1.1.0", "Version parsed correctly"); - t.eq(report.language, "en", "Language parsed correctly"); - var exception = report.exceptions[0]; - t.eq(exception.code, "InvalidParameterValue", "exceptionCode properly parsed"); - t.eq(exception.locator, "foo", "locator properly parsed"); - t.eq(exception.texts[0], "Update error: Error occured updating features", "ExceptionText correctly parsed"); - t.eq(exception.texts[1], "Second exception line", "Second ExceptionText correctly parsed"); - } - - </script> -</head> -<body> -</body> -</html> |