Skip to content

Commit 06b3d0b

Browse files
committed
fix 测试
1 parent f12eaca commit 06b3d0b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

examples-test/leaflet/addressMatchServiceIT.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ module.exports = {
88
browser.waitForElementPresent('.panel-body', 10000);
99
/*在正向匹配服务中输入值,并判断结果*/
1010
browser.setValue('#address', '公司');
11-
browser.setValue('#filters', '北京');
11+
browser.setValue('#filters', '北京,石景山区');
1212
browser.setValue('#fromIndex', 0);
13-
browser.setValue('#toIndex', 10);
13+
browser.setValue('#toIndex', 1);
1414
browser.setValue('#maxReturn', -1);
1515
browser.setValue('#prjCoordSys', '{epsgcode:4326}');
1616
browser.pause(1000);
@@ -19,9 +19,8 @@ module.exports = {
1919
browser.waitForElementPresent('.leaflet-pane.leaflet-marker-pane', 10000);
2020
browser.waitForElementPresent('.leaflet-pane.leaflet-marker-pane img', 10000);
2121
browser.elements('class name', 'leaflet-marker-icon', function (result) {
22-
browser.assert.equal(result.value.length, 10, "expect query result of '正向匹配' to be 10, actual is " + result.value.length);
22+
browser.assert.equal(result.value.length, 1, "expect query result of '正向匹配' to be 10, actual is " + result.value.length);
2323
});
24-
browser.pause(1000);
2524
browser.click('.leaflet-marker-icon', function () {
2625
browser.pause(1000);
2726
browser.waitForElementPresent('.leaflet-popup.leaflet-zoom-animated', 10000);

src/common/widgets/templates/AttributesPopContainer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
/* Copyright© 2000 - 2018 SuperMap Software Co.Ltd. All rights reserved.
22
* This program are made available under the terms of the Apache License, Version 2.0
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
4-
import { SuperMap } from '../../SuperMap';
5-
import {PopContainer} from '../../../common/widgets/templates/PopContainer';
4+
import {
5+
SuperMap
6+
} from '../../SuperMap';
7+
import {
8+
PopContainer
9+
} from './PopContainer';
610

711
export class AttributesPopContainer extends PopContainer {
812
constructor(attributes) {

src/leaflet/widgets/poisearch/POISearchView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
44
import L from "leaflet";
55
import '../../core/Base';
6-
import {config} from '../../../leaflet/widgets/poisearch/CityConfig';
6+
import {config} from './CityConfig';
77
import {
88
WidgetSelect,
99
MessageBox,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy