| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e48400b commit e80af2a
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,7 +31,7 @@ describe('classic_ProcessingService', () => { | |||
| 31 | 31 | it('getKernelDensityJobs_processCompleted', (done) => { | |
| 32 | 32 | var id = id_kernelDensityJob; | |
| 33 | 33 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 34 | - if (testUrl === url + "/spatialanalyst/density") { | ||
| 34 | + if (testUrl.indexOf(url + "/spatialanalyst/density")===0) { | ||
| 35 | 35 | var escapedJson = "[" + kernelDensityJob_get + "]"; | |
| 36 | 36 | return Promise.resolve(new Response(escapedJson)); | |
| 37 | 37 | } | |
@@ -84,7 +84,7 @@ describe('classic_ProcessingService', () => { | |||
| 84 | 84 | it('getKernelDensityJob', (done) => { | |
| 85 | 85 | var id = id_kernelDensityJob; | |
| 86 | 86 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 87 | - if (testUrl === url + "/spatialanalyst/density" + "/" + id) { | ||
| 87 | + if (testUrl.indexOf(url + "/spatialanalyst/density" + "/" + id)===0) { | ||
| 88 | 88 | var escapedJson = kernelDensityJob_get; | |
| 89 | 89 | return Promise.resolve(new Response(escapedJson)); | |
| 90 | 90 | } | |
@@ -144,7 +144,7 @@ describe('classic_ProcessingService', () => { | |||
| 144 | 144 | return Promise.resolve(); | |
| 145 | 145 | }); | |
| 146 | 146 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 147 | - if (newResourceLocationURL === url + "/spatialanalyst/density/" + id) { | ||
| 147 | + if (newResourceLocationURL.indexOf( url + "/spatialanalyst/density/" + id)===0) { | ||
| 148 | 148 | var escapedJson = kernelDensityJob_get; | |
| 149 | 149 | return Promise.resolve(new Response(escapedJson)); | |
| 150 | 150 | } | |
@@ -220,7 +220,7 @@ describe('classic_ProcessingService', () => { | |||
| 220 | 220 | it('getSummaryMeshJobs_processCompleted', (done) => { | |
| 221 | 221 | var id = id_summaryMeshJob; | |
| 222 | 222 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 223 | - if (testUrl === url + "/spatialanalyst/aggregatepoints") { | ||
| 223 | + if (testUrl.indexOf(url + "/spatialanalyst/aggregatepoints")===0) { | ||
| 224 | 224 | // 转义后的json字符串 | |
| 225 | 225 | var escapedJson = "[" + summaryMeshJob_get + "]"; | |
| 226 | 226 | return Promise.resolve(new Response(escapedJson)); | |
@@ -270,7 +270,7 @@ describe('classic_ProcessingService', () => { | |||
| 270 | 270 | it('getSummaryMeshJob', (done) => { | |
| 271 | 271 | var id = id_summaryMeshJob; | |
| 272 | 272 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 273 | - if (testUrl === url + "/spatialanalyst/aggregatepoints/" + id) { | ||
| 273 | + if (testUrl.indexOf(url + "/spatialanalyst/aggregatepoints/" + id)===0) { | ||
| 274 | 274 | var escapedJson = summaryMeshJob_get; | |
| 275 | 275 | return Promise.resolve(new Response(escapedJson)); | |
| 276 | 276 | } | |
@@ -326,7 +326,7 @@ describe('classic_ProcessingService', () => { | |||
| 326 | 326 | return Promise.resolve(); | |
| 327 | 327 | }); | |
| 328 | 328 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 329 | - if (newResourceLocationURL === url + "/spatialanalyst/aggregatepoints/" + id) { | ||
| 329 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/aggregatepoints/" + id)===0) { | ||
| 330 | 330 | var escapedJson = summaryMeshJob_get; | |
| 331 | 331 | return Promise.resolve(new Response(escapedJson)); | |
| 332 | 332 | } | |
@@ -395,7 +395,7 @@ describe('classic_ProcessingService', () => { | |||
| 395 | 395 | it('getQueryJobs_processCompleted', (done) => { | |
| 396 | 396 | var id = id_singleObjectQueryJob; | |
| 397 | 397 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 398 | - if (testUrl === url + "/spatialanalyst/query") { | ||
| 398 | + if (testUrl.indexOf(url + "/spatialanalyst/query")===0) { | ||
| 399 | 399 | var escapedJson = "[" + singleObjectQueryJob_get + "]"; | |
| 400 | 400 | return Promise.resolve(new Response(escapedJson)); | |
| 401 | 401 | } | |
@@ -445,7 +445,7 @@ describe('classic_ProcessingService', () => { | |||
| 445 | 445 | it('getQueryJob', (done) => { | |
| 446 | 446 | var id = id_singleObjectQueryJob; | |
| 447 | 447 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 448 | - if (testUrl === url + "/spatialanalyst/query/" + id) { | ||
| 448 | + if (testUrl.indexOf(url + "/spatialanalyst/query/" + id)===0) { | ||
| 449 | 449 | var escapedJson = singleObjectQueryJob_get; | |
| 450 | 450 | return Promise.resolve(new Response(escapedJson)); | |
| 451 | 451 | } | |
@@ -501,7 +501,7 @@ describe('classic_ProcessingService', () => { | |||
| 501 | 501 | return Promise.resolve(); | |
| 502 | 502 | }); | |
| 503 | 503 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 504 | - if (newResourceLocationURL === url + "/spatialanalyst/query/" + id) { | ||
| 504 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/query/" + id)===0) { | ||
| 505 | 505 | var escapedJson = singleObjectQueryJob_get; | |
| 506 | 506 | return Promise.resolve(new Response(escapedJson)); | |
| 507 | 507 | } | |
@@ -569,7 +569,7 @@ describe('classic_ProcessingService', () => { | |||
| 569 | 569 | it('getSummaryRegionJobs_processCompleted', (done) => { | |
| 570 | 570 | var id = id_summaryRegionJob; | |
| 571 | 571 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 572 | - if (testUrl === url + "/spatialanalyst/summaryregion") { | ||
| 572 | + if (testUrl.indexOf(url + "/spatialanalyst/summaryregion")===0) { | ||
| 573 | 573 | var escapedJson = "[" + summaryRegionJob_get + "]"; | |
| 574 | 574 | return Promise.resolve(new Response(escapedJson)); | |
| 575 | 575 | } | |
@@ -628,7 +628,7 @@ describe('classic_ProcessingService', () => { | |||
| 628 | 628 | it('getSummaryRegionJob', (done) => { | |
| 629 | 629 | var id = id_summaryRegionJob; | |
| 630 | 630 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 631 | - if (testUrl === url + "/spatialanalyst/summaryregion/" + id) { | ||
| 631 | + if (testUrl.indexOf(url + "/spatialanalyst/summaryregion/" + id)===0) { | ||
| 632 | 632 | var escapedJson = summaryRegionJob_get; | |
| 633 | 633 | return Promise.resolve(new Response(escapedJson)); | |
| 634 | 634 | } | |
@@ -696,7 +696,7 @@ describe('classic_ProcessingService', () => { | |||
| 696 | 696 | return Promise.resolve(); | |
| 697 | 697 | }); | |
| 698 | 698 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 699 | - if (newResourceLocationURL === url + "/spatialanalyst/summaryregion/" + id) { | ||
| 699 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/summaryregion/" + id)===0) { | ||
| 700 | 700 | var escapedJson = summaryRegionJob_get; | |
| 701 | 701 | return Promise.resolve(new Response(escapedJson)); | |
| 702 | 702 | } | |
@@ -781,7 +781,7 @@ describe('classic_ProcessingService', () => { | |||
| 781 | 781 | it('getVectorClipJobs_processCompleted', (done) => { | |
| 782 | 782 | var id = id_vectorClipJob; | |
| 783 | 783 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 784 | - if (testUrl === url + "/spatialanalyst/vectorclip") { | ||
| 784 | + if (testUrl.indexOf(url + "/spatialanalyst/vectorclip")===0) { | ||
| 785 | 785 | var escapedJson = "[" + vectorClipJob_get + "]"; | |
| 786 | 786 | return Promise.resolve(new Response(escapedJson)); | |
| 787 | 787 | } | |
@@ -832,7 +832,7 @@ describe('classic_ProcessingService', () => { | |||
| 832 | 832 | it('getVectorClipJob', (done) => { | |
| 833 | 833 | var id = id_vectorClipJob; | |
| 834 | 834 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 835 | - if (testUrl === url + "/spatialanalyst/vectorclip/" + id) { | ||
| 835 | + if (testUrl.indexOf(url + "/spatialanalyst/vectorclip/" + id)===0) { | ||
| 836 | 836 | var escapedJson = vectorClipJob_get; | |
| 837 | 837 | return Promise.resolve(new Response(escapedJson)); | |
| 838 | 838 | } | |
@@ -889,7 +889,7 @@ describe('classic_ProcessingService', () => { | |||
| 889 | 889 | return Promise.resolve(); | |
| 890 | 890 | }); | |
| 891 | 891 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 892 | - if (newResourceLocationURL === url + "/spatialanalyst/vectorclip/" + id) { | ||
| 892 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/vectorclip/" + id)===0) { | ||
| 893 | 893 | var escapedJson = vectorClipJob_get; | |
| 894 | 894 | return Promise.resolve(new Response(escapedJson)); | |
| 895 | 895 | } | |
@@ -958,7 +958,7 @@ describe('classic_ProcessingService', () => { | |||
| 958 | 958 | it('getOverlayGeoJobs_processCompleted', (done) => { | |
| 959 | 959 | var id = id_overlayGeoJob; | |
| 960 | 960 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 961 | - if (testUrl === url + "/spatialanalyst/overlay") { | ||
| 961 | + if (testUrl.indexOf(url + "/spatialanalyst/overlay")===0) { | ||
| 962 | 962 | var escapedJson = "[" + overlayGeoJob_get + "]"; | |
| 963 | 963 | return Promise.resolve(new Response(escapedJson)); | |
| 964 | 964 | } | |
@@ -1010,7 +1010,7 @@ describe('classic_ProcessingService', () => { | |||
| 1010 | 1010 | it('getOverlayGeoJob', (done) => { | |
| 1011 | 1011 | var id = id_overlayGeoJob; | |
| 1012 | 1012 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 1013 | - if (testUrl === url + "/spatialanalyst/overlay/" + id) { | ||
| 1013 | + if (testUrl.indexOf(url + "/spatialanalyst/overlay/" + id)===0) { | ||
| 1014 | 1014 | var escapedJson = overlayGeoJob_get; | |
| 1015 | 1015 | return Promise.resolve(new Response(escapedJson)); | |
| 1016 | 1016 | } | |
@@ -1068,7 +1068,7 @@ describe('classic_ProcessingService', () => { | |||
| 1068 | 1068 | return Promise.resolve(); | |
| 1069 | 1069 | }); | |
| 1070 | 1070 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 1071 | - if (newResourceLocationURL === url + "/spatialanalyst/overlay/" + id) { | ||
| 1071 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/overlay/" + id)===0) { | ||
| 1072 | 1072 | var escapedJson = overlayGeoJob_get; | |
| 1073 | 1073 | return Promise.resolve(new Response(escapedJson)); | |
| 1074 | 1074 | } | |
@@ -1138,7 +1138,7 @@ describe('classic_ProcessingService', () => { | |||
| 1138 | 1138 | it('getBuffersJobs_processCompleted', (done) => { | |
| 1139 | 1139 | var id = id_buffersAnalystJob; | |
| 1140 | 1140 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 1141 | - if (testUrl === url + "/spatialanalyst/buffers") { | ||
| 1141 | + if (testUrl.indexOf(url + "/spatialanalyst/buffers")===0) { | ||
| 1142 | 1142 | var escapedJson = "[" + buffersAnalystJob_get + "]"; | |
| 1143 | 1143 | return Promise.resolve(new Response(escapedJson)); | |
| 1144 | 1144 | } | |
@@ -1190,7 +1190,7 @@ describe('classic_ProcessingService', () => { | |||
| 1190 | 1190 | it('getBuffersJob', (done) => { | |
| 1191 | 1191 | var id = id_buffersAnalystJob; | |
| 1192 | 1192 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 1193 | - if (testUrl === url + "/spatialanalyst/buffers/" + id) { | ||
| 1193 | + if (testUrl.indexOf(url + "/spatialanalyst/buffers/" + id)===0) { | ||
| 1194 | 1194 | var escapedJson = buffersAnalystJob_get; | |
| 1195 | 1195 | return Promise.resolve(new Response(escapedJson)); | |
| 1196 | 1196 | } | |
@@ -1249,7 +1249,7 @@ describe('classic_ProcessingService', () => { | |||
| 1249 | 1249 | return Promise.resolve(); | |
| 1250 | 1250 | }); | |
| 1251 | 1251 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 1252 | - if (newResourceLocationURL === url + "/spatialanalyst/buffers/" + id) { | ||
| 1252 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/buffers/" + id)===0) { | ||
| 1253 | 1253 | var escapedJson = buffersAnalystJob_get; | |
| 1254 | 1254 | return Promise.resolve(new Response(escapedJson)); | |
| 1255 | 1255 | } | |
@@ -1320,7 +1320,7 @@ describe('classic_ProcessingService', () => { | |||
| 1320 | 1320 | it('getTopologyValidatorJobs_processCompleted', (done) => { | |
| 1321 | 1321 | var id = id_topologyValidatorJob; | |
| 1322 | 1322 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 1323 | - if (testUrl === url + "/spatialanalyst/topologyvalidator") { | ||
| 1323 | + if (testUrl.indexOf(url + "/spatialanalyst/topologyvalidator")===0) { | ||
| 1324 | 1324 | var escapedJson = "[" + topologyValidatorJob_get + "]"; | |
| 1325 | 1325 | return Promise.resolve(new Response(escapedJson)); | |
| 1326 | 1326 | } | |
@@ -1371,7 +1371,7 @@ describe('classic_ProcessingService', () => { | |||
| 1371 | 1371 | it('getTopologyValidatorJob', (done) => { | |
| 1372 | 1372 | var id = id_topologyValidatorJob; | |
| 1373 | 1373 | spyOn(FetchRequest, 'get').and.callFake((testUrl) => { | |
| 1374 | - if (testUrl === url + "/spatialanalyst/topologyvalidator/" + id) { | ||
| 1374 | + if (testUrl.indexOf(url + "/spatialanalyst/topologyvalidator/" + id)===0) { | ||
| 1375 | 1375 | var escapedJson = topologyValidatorJob_get; | |
| 1376 | 1376 | return Promise.resolve(new Response(escapedJson)); | |
| 1377 | 1377 | } | |
@@ -1428,7 +1428,7 @@ describe('classic_ProcessingService', () => { | |||
| 1428 | 1428 | return Promise.resolve(); | |
| 1429 | 1429 | }); | |
| 1430 | 1430 | spyOn(FetchRequest, 'get').and.callFake((newResourceLocationURL) => { | |
| 1431 | - if (newResourceLocationURL === url + "/spatialanalyst/topologyvalidator/" + id) { | ||
| 1431 | + if (newResourceLocationURL.indexOf(url + "/spatialanalyst/topologyvalidator/" + id)===0) { | ||
| 1432 | 1432 | var escapedJson = topologyValidatorJob_get; | |
| 1433 | 1433 | return Promise.resolve(new Response(escapedJson)); | |
| 1434 | 1434 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments