-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specs refactor pt.2 #3793
Specs refactor pt.2 #3793
Conversation
|
||
return updateUntilDone(globe).then(function() { | ||
expect(render(frameState, globe)).toBeGreaterThan(0); | ||
expect(context.readPixels()).toEqual([255, 0, 0, 255]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should also check this line.
}); | ||
|
||
afterEach(function() { | ||
globe.destroy(); | ||
scene.imageryLayers.removeAll(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this change? Would globe.destroy()
still work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look in Scene.js, the old globe is automatically destroyed when the new one is set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right!
That's all my comments. Besides that it looks great. |
Second iteration of the test refactoring in #1259