Skip to content

Commit dfec3cd

Browse files
committed
fix vt
1 parent e7cbdff commit dfec3cd

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

examples-test/leaflet/01_measure_areaIT.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ module.exports = {
99
browser.waitForElementPresent('.leaflet-pane.leaflet-overlay-pane canvas', 10000);
1010
browser.waitForElementPresent('.leaflet-popup-content', 10000);
1111
/*check the info showing in leaflet-popup is equal to our expectation*/
12-
var areaInfo = '面积:\ 3323393352194.927\ 平方米';
13-
console.log(browser.expect.element('.leaflet-popup-content').text);
12+
var areaInfo = '面积:3323393352194.927平方米';
1413
browser.expect.element('.leaflet-popup-content').text.to.equal(areaInfo);
1514
browser.click('.leaflet-popup-close-button', function () {
1615
browser.pause(1000);

examples-test/leaflet/01_measure_distanceIT.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
browser.waitForElementPresent('.leaflet-pane.leaflet-marker-pane img', 10000);
1212
browser.waitForElementPresent('.leaflet-popup-content', 10000);
1313
/*check the info showing in leaflet-popup is equal to our expectation*/
14-
var distanceInfo = '距离:\ 2115093.3333095424\ 米';
14+
var distanceInfo = '距离:2115093.3333095424米';
1515
browser.expect.element('.leaflet-popup-content').text.to.equal(distanceInfo);
1616
browser.click('.leaflet-popup-close-button', function () {
1717
browser.waitForElementNotPresent('.leaflet-popup-content', 10000);

examples-test/leaflet/04_routeCalculateMeasureServiceIT.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ module.exports = {
1515
});
1616
browser.waitForElementPresent('.leaflet-pane.leaflet-tooltip-pane', 10000);
1717
browser.waitForElementPresent('.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top', 10000);
18-
var info = "查询获取的M值为:627.9307113458588";
19-
concole.log(browser.expect.element('.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top').text);
18+
var info = "查询获取的M值为:627.9307113458588";
2019
browser.expect.element('.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top').text.to.equal(info);
2120
//测试版权点击的正确性
2221
//commonTools.verifyCopyrightOfLeaflet(browser);

examples/leaflet/01_measure_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
L.supermap
3131
.measureService(url)
3232
.measureArea(areaMeasureParam, function (serviceResult) {
33-
var content = resources.text_area + serviceResult.result.area +resources.msg_sqm;
33+
var content = resources.text_area + serviceResult.result.area + resources.msg_sqm;
3434
polygon.bindPopup(content).openPopup(polygon.getCenter());
3535
});
3636

examples/leaflet/01_measure_distance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
L.supermap
3333
.measureService(url)
3434
.measureDistance(distanceMeasureParam, function (serviceResult) {
35-
var content = resources.text_distance+": " + serviceResult.result.distance + resources.msg_m;
35+
var content = resources.text_distance+":" + serviceResult.result.distance + resources.msg_m;
3636
marker1.bindPopup(content).openPopup(marker1.getLatLng());
3737
});
3838

0 commit comments

Comments
 (0)