mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
LibWeb: Add stubbed-out WebGL2RenderingContext
This commit is contained in:
parent
7868b03d90
commit
af536e1192
Notes:
github-actions[bot]
2024-12-06 14:36:41 +00:00
Author: https://github.com/ADKaster
Commit: af536e1192
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2809
Reviewed-by: https://github.com/kalenikaliaksandr ✅
19 changed files with 851 additions and 17 deletions
17
Tests/LibWeb/Text/input/canvas/webgl-create-canvas.html
Normal file
17
Tests/LibWeb/Text/input/canvas/webgl-create-canvas.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println("FIXME: This test relies on having a GPU backend enabled, which it is not in run-tests mode :(");
|
||||
|
||||
let canvas = document.createElement("canvas");
|
||||
let context = canvas.getContext("webgl");
|
||||
println(`context instanceof WebGLRenderingContext: ${context instanceof WebGLRenderingContext}`);
|
||||
println(`context is null: ${context === null}`);
|
||||
|
||||
let canvas2 = document.createElement("canvas");
|
||||
let context2 = canvas2.getContext("webgl2");
|
||||
println(`context2 instanceof WebGL2RenderingContext: ${context2 instanceof WebGL2RenderingContext}`);
|
||||
println(`context2 is null: ${context2 === null}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue