File tree Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Expand file tree Collapse file tree 5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ module.exports = {
9
9
browser . waitForElementPresent ( '.leaflet-pane.leaflet-overlay-pane canvas' , 10000 ) ;
10
10
browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
11
11
/*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平方米' ;
14
13
browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( areaInfo ) ;
15
14
browser . click ( '.leaflet-popup-close-button' , function ( ) {
16
15
browser . pause ( 1000 ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module.exports = {
11
11
browser . waitForElementPresent ( '.leaflet-pane.leaflet-marker-pane img' , 10000 ) ;
12
12
browser . waitForElementPresent ( '.leaflet-popup-content' , 10000 ) ;
13
13
/*check the info showing in leaflet-popup is equal to our expectation*/
14
- var distanceInfo = '距离:\ 2115093.3333095424\ 米 ' ;
14
+ var distanceInfo = '距离:2115093.3333095424米 ' ;
15
15
browser . expect . element ( '.leaflet-popup-content' ) . text . to . equal ( distanceInfo ) ;
16
16
browser . click ( '.leaflet-popup-close-button' , function ( ) {
17
17
browser . waitForElementNotPresent ( '.leaflet-popup-content' , 10000 ) ;
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ module.exports = {
15
15
} ) ;
16
16
browser . waitForElementPresent ( '.leaflet-pane.leaflet-tooltip-pane' , 10000 ) ;
17
17
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" ;
20
19
browser . expect . element ( '.leaflet-tooltip.leaflet-zoom-animated.leaflet-tooltip-top' ) . text . to . equal ( info ) ;
21
20
//测试版权点击的正确性
22
21
//commonTools.verifyCopyrightOfLeaflet(browser);
Original file line number Diff line number Diff line change 30
30
L . supermap
31
31
. measureService ( url )
32
32
. 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 ;
34
34
polygon . bindPopup ( content ) . openPopup ( polygon . getCenter ( ) ) ;
35
35
} ) ;
36
36
Original file line number Diff line number Diff line change 32
32
L . supermap
33
33
. measureService ( url )
34
34
. 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 ;
36
36
marker1 . bindPopup ( content ) . openPopup ( marker1 . getLatLng ( ) ) ;
37
37
} ) ;
38
38
You can’t perform that action at this time.
0 commit comments