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

Fixes theme error for headless workspaces #2605

Merged
merged 4 commits into from
Jul 1, 2019

Conversation

alschmiedt
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#2575 & #2540

Proposed Changes

Set a default theme in the workspace constructor.

Reason for Changes

We were getting an error when creating a block on a headless workspace because the theme was not set. This is because we only set the default theme in Blockly.Inject which does not get called for a headless workspace.

Test Coverage

Tested on:

Additional Information

@rachel-fenichel
Copy link
Collaborator

Makes sense. One jsunit test is failing.

@@ -279,6 +280,7 @@ function test_set_style() {
assertEquals('#ddeeff', blockA.colourTertiary_);

blockTest_tearDown();
\
Copy link
Collaborator

Choose a reason for hiding this comment

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

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

@alschmiedt alschmiedt merged commit ef1ecfd into google:develop Jul 1, 2019
@alschmiedt alschmiedt mentioned this pull request Sep 26, 2019
3 tasks
@alschmiedt alschmiedt deleted the headless_theme branch May 29, 2020 15:34
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.

None yet

2 participants