Skip to content

Commit a13c679

Browse files
committed
fix vt
1 parent 0a07900 commit a13c679

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples-test/leaflet/01_measure_areaIT.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ 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-
browser.expect.element('.leaflet-popup-content').text.to.equal(areaInfo);
12+
browser.expect.element('.leaflet-popup-content').text.to.contain("面积");
13+
browser.expect.element('.leaflet-popup-content').text.to.contain("平方米");
14+
browser.expect.element('.leaflet-popup-content').text.to.contain("3323393352194.927");
1415
browser.click('.leaflet-popup-close-button', function () {
1516
browser.pause(1000);
1617
browser.waitForElementNotPresent('.leaflet-popup-content', 10000);

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.3333095433米';
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);

0 commit comments

Comments
 (0)