Skip to content

Commit eaf3250

Browse files
尝试修复iclient9 UT构建失败的问题,
1 parent 0b1e300 commit eaf3250

16 files changed

+58
-58
lines changed

test/common/iServer/GetFieldsServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('testGetFieldsService_processAsync',function(){
7777
expect(serviceFailedEventArgsSystem.error.errorMsg).not.toBeNull();
7878
getFieldsService.destroy();
7979
done();
80-
}catch(excepion){
80+
}catch(exception){
8181
expect(false).toBeTruthy();
8282
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
8383
getFieldsService.destroy();

test/common/iServer/GetLayersInfoServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('testGetLayersInfoService_processAsync',function(){
5151
expect(analystResult.subLayers.layers).not.toBeNull();
5252
getLayersInfoService.destroy();
5353
done();
54-
}catch(excepion){
54+
}catch(exception){
5555
expect(false).toBeTruthy();
5656
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
5757
getLayersInfoService.destroy();
@@ -72,7 +72,7 @@ describe('testGetLayersInfoService_processAsync',function(){
7272
expect(analystResult.subLayers.layers).not.toBeNull();
7373
getLayersInfoService.destroy();
7474
done();
75-
}catch(excepion){
75+
}catch(exception){
7676
expect(false).toBeTruthy();
7777
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
7878
getLayersInfoService.destroy();
@@ -93,7 +93,7 @@ describe('testGetLayersInfoService_processAsync',function(){
9393
expect(analystResult.subLayers.layers).not.toBeNull();
9494
getLayersInfoService.destroy();
9595
done();
96-
}catch(excepion){
96+
}catch(exception){
9797
expect(false).toBeTruthy();
9898
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
9999
getLayersInfoService.destroy();

test/common/iServer/MapServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('testMapService_processAsync',function(){
6767
expect(getMapService.events).toBeNull();
6868
expect(getMapService.eventListeners).toBeNull();
6969
done();
70-
}catch(excepion){
70+
}catch(exception){
7171
expect(false).toBeTruthy();
7272
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
7373
getMapService.destroy();

test/common/iServer/MathExpressionAnalysisServiceSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('testMathExpressionAnalysisService_processAsync',function(){
5555
expect(mathExpressionAnalysisService.eventListeners).toBeNull();
5656
mathExpressionAnalysisParameters.destroy();
5757
done();
58-
}catch(excepion){
58+
}catch(exception){
5959
expect(false).toBeTruthy();
6060
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
6161
mathExpressionAnalysisService.destroy();

test/common/iServer/MeasureServiceSpec.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('testMeasureService_processAsync', function () {
6565
expect(measureService.distanceMode == null).toBeTruthy();
6666
measureParameters.destroy();
6767
done();
68-
} catch (excepion) {
68+
} catch (exception) {
6969
expect(false).toBeTruthy();
7070
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
7171
measureService.destroy();
@@ -97,7 +97,7 @@ describe('testMeasureService_processAsync', function () {
9797
measureService.destroy();
9898
measureParameters.destroy();
9999
done();
100-
} catch (excepion) {
100+
} catch (exception) {
101101
expect(false).toBeTruthy();
102102
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
103103
measureService.destroy();
@@ -131,7 +131,7 @@ describe('testMeasureService_processAsync', function () {
131131
measureService.destroy();
132132
measureParameters.destroy();
133133
done();
134-
} catch (excepion) {
134+
} catch (exception) {
135135
expect(false).toBeTruthy();
136136
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
137137
measureService.destroy();
@@ -164,7 +164,7 @@ describe('testMeasureService_processAsync', function () {
164164
measureService.destroy();
165165
measureParameters.destroy();
166166
done();
167-
} catch (excepion) {
167+
} catch (exception) {
168168
expect(false).toBeTruthy();
169169
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
170170
measureService.destroy();
@@ -196,7 +196,7 @@ describe('testMeasureService_processAsync', function () {
196196
measureService.destroy();
197197
measureParameters.destroy();
198198
done();
199-
} catch (excepion) {
199+
} catch (exception) {
200200
expect(false).toBeTruthy();
201201
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
202202
measureService.destroy();
@@ -225,7 +225,7 @@ describe('testMeasureService_processAsync', function () {
225225
measureService.destroy();
226226
measureParameters.destroy();
227227
done();
228-
} catch (excepion) {
228+
} catch (exception) {
229229
expect(false).toBeTruthy();
230230
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
231231
measureService.destroy();
@@ -256,7 +256,7 @@ describe('testMeasureService_processAsync', function () {
256256
measureService.destroy();
257257
measureParameters.destroy();
258258
done();
259-
} catch (excepion) {
259+
} catch (exception) {
260260
expect(false).toBeTruthy();
261261
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
262262
measureService.destroy();
@@ -285,7 +285,7 @@ describe('testMeasureService_processAsync', function () {
285285
expect(serviceFailedEventArgsSystem).not.toBeNull();
286286
measureService.destroy();
287287
done();
288-
}catch(excepion){
288+
}catch(exception){
289289
alert(exception.name + ":" + exception.message);
290290
measureService.destroy();
291291
done();
@@ -305,8 +305,8 @@ describe('testMeasureService_processAsync', function () {
305305
var measureResult=measureService.lastResult;
306306
equal(measureResult,null,"measureService.lastResult");
307307
start();
308-
}catch(excepion){
309-
ok(false,"exception occcurs,message is:"+excepion.message)
308+
}catch(exception){
309+
ok(false,"exception occcurs,message is:"+exception.message)
310310
start();
311311
}
312312
},8000);

test/common/iServer/OverlayAnalystServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('testOverlayAnalystService_processAsync',function(){
5454
expect(overlayServiceByDatasets.events).toBeNull();
5555
dsOverlayAnalystParameters.destroy();
5656
done();
57-
}catch(excepion){
57+
}catch(exception){
5858
expect(false).toBeTruthy();
5959
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
6060
overlayServiceByDatasets.destroy();
@@ -81,7 +81,7 @@ describe('testOverlayAnalystService_processAsync',function(){
8181
overlayServiceByDatasets.destroy();
8282
dsOverlayAnalystParameters.destroy();
8383
done();
84-
}catch(excepion){
84+
}catch(exception){
8585
expect(false).toBeTruthy();
8686
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
8787
overlayServiceByDatasets.destroy();
@@ -119,7 +119,7 @@ describe('testOverlayAnalystService_processAsync',function(){
119119
overlayServiceByDatasets.destroy();
120120
geOverlayAnalystParameters.destroy();
121121
done();
122-
}catch(excepion){
122+
}catch(exception){
123123
expect(false).toBeTruthy();
124124
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
125125
overlayServiceByDatasets.destroy();

test/common/iServer/QueryByBoundsServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('testQueryByBoundsService_processAsync',function(){
7979
expect(queryByBoundsService.returnContent).toBeNull();
8080
queryByBoundsParameters.destroy();
8181
done();
82-
}catch(excepion){
82+
}catch(exception){
8383
expect(false).toBeTruthy();
8484
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
8585
queryByBoundsService.destroy();
@@ -122,7 +122,7 @@ describe('testQueryByBoundsService_processAsync',function(){
122122
queryByBoundsService.destroy();
123123
queryByBoundsParameters.destroy();
124124
done();
125-
}catch(excepion){
125+
}catch(exception){
126126
expect(false).toBeTruthy();
127127
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
128128
queryByBoundsService.destroy();
@@ -157,7 +157,7 @@ describe('testQueryByBoundsService_processAsync',function(){
157157
queryByBoundsService.destroy();
158158
queryByBoundsParameters.destroy();
159159
done();
160-
}catch(excepion){
160+
}catch(exception){
161161
expect(false).toBeTruthy();
162162
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
163163
queryByBoundsService.destroy();

test/common/iServer/QueryByDistanceServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('testQueryByBoundsService_processAsync',function(){
7373
queryByDistanceService.destroy();
7474
queryByDistanceParameters.destroy();
7575
done();
76-
} catch (excepion) {
76+
} catch (exception) {
7777
expect(false).toBeTruthy();
7878
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
7979
queryByDistanceService.destroy();
@@ -112,7 +112,7 @@ describe('testQueryByBoundsService_processAsync',function(){
112112
queryByDistanceService.destroy();
113113
queryByDistanceParameters.destroy();
114114
done();
115-
} catch (excepion) {
115+
} catch (exception) {
116116
expect(false).toBeTruthy();
117117
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
118118
queryByDistanceService.destroy();
@@ -151,7 +151,7 @@ describe('testQueryByBoundsService_processAsync',function(){
151151
queryByDistanceService.destroy();
152152
queryByDistanceParameters.destroy();
153153
done();
154-
} catch (excepion) {
154+
} catch (exception) {
155155
expect(false).toBeTruthy();
156156
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
157157
queryByDistanceService.destroy();

test/common/iServer/QueryByGeometryServiceSpec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe('testQueryByGeometryService_processAsync',function(){
8686
queryByGeometryService.destroy();
8787
queryByGeometryParameters.destroy();
8888
done();
89-
}catch(excepion){
89+
}catch(exception){
9090
expect(false).toBeTruthy();
9191
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
9292
queryByGeometryService.destroy();
@@ -133,7 +133,7 @@ describe('testQueryByGeometryService_processAsync',function(){
133133
queryByGeometryService.destroy();
134134
queryByGeometryParameters.destroy();
135135
done();
136-
}catch(excepion){
136+
}catch(exception){
137137
expect(false).toBeTruthy();
138138
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
139139
queryByGeometryService.destroy();
@@ -173,7 +173,7 @@ describe('testQueryByGeometryService_processAsync',function(){
173173
queryByGeometryService.destroy();
174174
queryByGeometryParameters.destroy();
175175
done();
176-
}catch(excepion){
176+
}catch(exception){
177177
expect(false).toBeTruthy();
178178
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
179179
queryByGeometryService.destroy();

test/common/iServer/QueryBySQLServiceSpec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ describe('testQueryBySQLService_processAsync',function(){
200200
queryBySQLService.destroy();
201201
queryBySQLParameters.destroy();
202202
done();
203-
}catch(excepion){
203+
}catch(exception){
204204
expect(false).toBeTruthy();
205205
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
206206
queryBySQLService.destroy();
@@ -238,7 +238,7 @@ describe('testQueryBySQLService_processAsync',function(){
238238
queryBySQLService.destroy();
239239
queryBySQLParameters.destroy();
240240
done();
241-
}catch(excepion){
241+
}catch(exception){
242242
expect(false).toBeTruthy();
243243
console.log("FieldStatisticService_" + exception.name + ":" + exception.message);
244244
queryBySQLService.destroy();

0 commit comments

Comments
 (0)