-
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 (final) #3803
Specs refactor (final) #3803
Conversation
sun.destroy(); | ||
}); | ||
|
||
it('does not render without a render pass', function() { |
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.
I'm changing my mind here, but I think it's actually okay to include this test, but calling sun.update(scene.frameState)
instead of scene.renderForSpecs()
While looking for occurences of The test fails if I change it to [0, 0, 0, 255]. Can you also look into that quickly? |
@lilleyse Updated with suggested changes |
viewSun(scene.camera, scene.context.uniformState); | ||
scene.frameState.passes.render = false; | ||
scene.sun.update(scene); | ||
expect(scene.context.readPixels()).toEqual(backgroundColor); |
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.
var command = scene.sun.update(scene.frameState);
expect(command).not.toBeDefined();
Is fine here.
Updated |
Looks good! |
Final cleanup for #1259
As of this revision, none of the scene specs contain references to
createContext
orcreateFrameState
.