Skip to content
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

Merged
merged 18 commits into from
Mar 31, 2016
Merged

Specs refactor pt.2 #3793

merged 18 commits into from
Mar 31, 2016

Conversation

lasalvavida
Copy link
Contributor

Second iteration of the test refactoring in #1259


return updateUntilDone(globe).then(function() {
expect(render(frameState, globe)).toBeGreaterThan(0);
expect(context.readPixels()).toEqual([255, 0, 0, 255]);
Copy link
Contributor

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();
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right!

@lilleyse
Copy link
Contributor

That's all my comments. Besides that it looks great.

@lilleyse lilleyse merged commit 6a6e883 into CesiumGS:master Mar 31, 2016
@lilleyse lilleyse deleted the specs-refactor branch March 31, 2016 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants