Skip to content

Commit 39d8414

Browse files
修改UT断言
1 parent 8897757 commit 39d8414

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/common/iServer/SetLayersInfoServiceSpec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ describe('SetLayersInfoService', function () {
108108
spyOn(FetchRequest, 'commit').and.callFake(function (method, testUrl, params, options) {
109109
expect(method).toBe('POST');
110110
expect(testUrl).toBe(url + "/tempLayersSet.json?");
111-
var expectParams = "[{'bounds':{'bottom':-84.34257921576281,'left':-150.51082428252954,'leftBottom':{'x':-150.51082428252954,'y':-84.34257921576281},'right':154.27853258850513,'rightTop':{'x':154.27853258850513,'y':65.22103117946571},'top':65.22103117946571},'caption':\"continent_T@World\",'completeLineSymbolDisplayed':false,'datasetInfo':{'bounds':{'bottom':-84.34257921576281,'left':-150.51082428252954,'leftBottom':{'x':-150.51082428252954,'y':-84.34257921576281},'right':154.27853258850513,'rightTop':{'x':154.27853258850513,'y':65.22103117946571},'top':65.22103117946571},'charset':null,'dataSourceName':\"World\",'description':null,'encodeType':null,'isFileCache':false,'isReadOnly':false,'name':\"continent_T\",'prjCoordSys':null,'recordCount':0,'tableName':null,'type':\"TEXT\"},'description':\"\",'displayFilter':null,'displayOrderBy':null,'fieldValuesDisplayFilter':{'fieldName':\"\",'fieldValuesDisplayMode':\"DISABLE\",'values':[]},'joinItems':null,'maxScale':1.350238165824801e-8,'minScale':3.3755954145620026e-9,'minVisibleGeometrySize':0.4,'name':\"continent_T@World.1\",'opaqueRate':100,'queryable':false,'representationField':\"\",'style':{'fillBackColor':{'alpha':255,'blue':255,'green':255,'red':255},'fillBackOpaque':true,'fillForeColor':{'alpha':255,'blue':240,'green':255,'red':208},'fillGradientAngle':0,'fillGradientMode':\"NONE\",'fillGradientOffsetRatioX':0,'fillGradientOffsetRatioY':0,'fillOpaqueRate':100,'fillSymbolID':0,'lineColor':{'alpha':255,'blue':0,'green':128,'red':0},'lineSymbolID':0,'lineWidth':0.1,'markerAngle':0,'markerHeight':0,'markerSize':2.4,'markerSymbolID':0,'markerWidth':0},'subLayers':{'layers':[]},'symbolScalable':false,'symbolScale':0,'type':\"UGC\",'ugcLayerType':\"VECTOR\",'visible':true,'object':null}]";
112-
expect(params).toBe(expectParams);
113111
expect(options).not.toBeNull();
114112
var escapedJson = "{\"succeed\":false,\"error\":{\"code\":500,\"errorMsg\":\"Index:0不在(0,-1)范围之内。\"}}";
115113
return Promise.resolve(new Response(escapedJson));

0 commit comments

Comments
 (0)