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

Improve testing support for membrane.webgl backend. #49

Open
phronmophobic opened this issue Aug 12, 2022 · 2 comments
Open

Improve testing support for membrane.webgl backend. #49

phronmophobic opened this issue Aug 12, 2022 · 2 comments

Comments

@phronmophobic
Copy link
Owner

Loading the membrane.webgl namespace will throw an exception if some of the browser APIs are missing. This makes it annoying for writing/running tests outside of the browser environment.

Also, on principle, it probably shouldn't throw an exception when loading the namespace regardless of whether the broswer APIs are available.

@phronmophobic
Copy link
Owner Author

Some ideas for suggestions for fixes/improvements:

  • Write all the membrane.webgl code against a protocol so that it can be mocked/substituted
  • use delays for any top level definitions

@phronmophobic
Copy link
Owner Author

Some specific problem expressions:

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

No branches or pull requests

1 participant