[common][geoallow][fix 2 tc issue about DPTTIZEN-2837] 96/134496/1
authoryuanzhongyuan <zy123.yuan@samsung.com>
Mon, 19 Jun 2017 02:48:18 +0000 (10:48 +0800)
committeryuanzhongyuan <zy123.yuan@samsung.com>
Mon, 19 Jun 2017 02:48:18 +0000 (10:48 +0800)
Change-Id: I0fd8bd4be59948f5efd8982612c41547e9b898ff

common/tct-geoallow-w3c-tests/geoallow/Coordinates_altitudeAccuracy_attribute_empty_string.html
common/tct-geoallow-w3c-tests/geoallow/Coordinates_altitudeAccuracy_attribute_set_null.html

index 48e31513c7d6604717d7f8df8c8903caae71edef..8417f383a52bb655ecade92b6384165f581d5d96 100755 (executable)
@@ -57,7 +57,7 @@ Authors:
         t.step(function () {
           position.coords.altitudeAccuracy = "";
           //regular matching (e.g. +12.3 -23.63 16.36 1533.6M etc)
-          var reg = new RegExp("^\-*\\+*[0-9]+.*");
+          var reg = new RegExp("null|^\-*\\+*[0-9]+.*");
           assert_true(reg.test(position.coords.altitudeAccuracy), "altitudeAccuracy value should be specified in meters");
         });
         t.done();
index a0767f4ce5a519ac753d9f87b47133037d3770a8..56d62cef601b803eb1841215d8332bedee4f3399 100755 (executable)
@@ -57,7 +57,7 @@ Authors:
         t.step(function () {
           position.coords.altitudeAccuracy == null;
           //regular matching (e.g. +12.3 -23.63 16.36 1533.6M etc)
-          var reg = new RegExp("^\-*\\+*[0-9]+.*");
+          var reg = new RegExp("null|^\-*\\+*[0-9]+.*");
           assert_true(reg.test(position.coords.altitudeAccuracy), "altitudeAccuracy value should be specified in meters");
         });
         t.done();