forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbaiduLayerIT.js
More file actions
33 lines (32 loc) · 1.35 KB
/
baiduLayerIT.js
File metadata and controls
33 lines (32 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var commonTools = require('../base/commonTools');
module.exports = {
'leaflet_baiduLayer': function (browser) {
browser.windowMaximize();
var type = 'leaflet';
var exampleName = 'baiduLayer';
commonTools.openExampleAndLoadMap(browser, type, exampleName);
//测试过程中截取地图瓦片, 和已有的标准瓦片进行对比
commonTools.cmpTestTileWithStdTile(browser, type, exampleName, 0, 0, 128, 128);
////验证版权跳转正确性
////iClient logo
//browser.useXpath().click('//*[@id="map"]/div[2]/div[4]/div[1]/a');
//browser.pause(1000);
//browser.windowHandles(function (result) {
// browser.switchWindow(result.value[1]);
// browser.assert.urlEquals('https://iclient.supermap.io/');
// browser.closeWindow();
// browser.switchWindow(result.value[0]);
// browser.pause(1000);
//});
////SuperMap iClient
//browser.useXpath().click('//*[@id="map"]/div[2]/div[4]/div[2]/span/a');
//browser.pause(1000);
//browser.windowHandles(function (result) {
// browser.switchWindow(result.value[1]);
// browser.assert.urlEquals('https://iclient.supermap.io/');
// browser.closeWindow();
//});
browser.pause(1000);
browser.end();
}
};