Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd an API for tests to force a webgl canvas context error #17038
Comments
|
Adding a pref should be enough, happy to mentor this one. |
|
More specifically, we can add code to Code: |
|
@jesusbv Would you like to work on this? |
|
I'd like to work on this. @jesusbv if you're interested too you can gladly take it, I'm not going to work on it till tomorrow. |
|
@SWW13 are you working on this, or can I take it? |
|
Just started to look a bit around in the WebGL component, feel free to take it @bd339 ;) |
|
Assigning to @bd339. |
Add pref to force WebGL context creation failure <!-- Please describe your changes on the following line: --> Introduces the pref `webgl.testing.context_creation_error`, to force creation of a new WebGLRenderingContext to fail. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17038 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17189) <!-- Reviewable:end -->
Per #16867 (comment).