Skip to content

Commit 41132bf

Browse files
committed
优化测试
1 parent 8dbe6df commit 41132bf

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test/openlayers/overlay/GraphSpec.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ require('../../resources/chinaConsumptionLevel');
33

44
var url = GlobeParameter.China4326URL;
55
describe('openlayers_graph', function () {
6-
var originalTimeout;
76
var testDiv, map;
87
beforeAll(function () {
98
testDiv = window.document.createElement("div");
@@ -30,15 +29,8 @@ describe('openlayers_graph', function () {
3029
map.addLayer(layer);
3130
});
3231
beforeEach(function () {
33-
originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
34-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 50000;
35-
setTimeout(function() {
36-
value = 0;
37-
done();
38-
}, 5000);
3932
});
4033
afterEach(function () {
41-
jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout;
4234
});
4335
afterAll(function () {
4436
window.document.body.removeChild(testDiv);

0 commit comments

Comments
 (0)