From 97ac127ce52f91476b86a7a7e9edacc823352743 Mon Sep 17 00:00:00 2001 From: Ken Russell Date: Wed, 24 Jun 2026 13:44:55 -0700 Subject: [PATCH] Add tests for late extension enabling and disabling. These tests apply only to WebGL 1.0, which for historical reasons, allowed extensions to be enabled after non-preprocessor tokens. It was infeasible to allow extensions to be disabled late in shader parsing, so the spec has been revised to forbid this behavior. This does not seem to impact any WebGL applications in production. Follow-up to #3774. --- .../conformance/glsl/misc/00_test_list.txt | 1 + .../misc/extension-enable-and-disable.html | 154 ++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 sdk/tests/conformance/glsl/misc/extension-enable-and-disable.html diff --git a/sdk/tests/conformance/glsl/misc/00_test_list.txt b/sdk/tests/conformance/glsl/misc/00_test_list.txt index 00d373b21..94bb4d68a 100644 --- a/sdk/tests/conformance/glsl/misc/00_test_list.txt +++ b/sdk/tests/conformance/glsl/misc/00_test_list.txt @@ -5,6 +5,7 @@ embedded-struct-definitions-forbidden.html --min-version 1.0.4 empty-declaration.html empty_main.vert.html --min-version 1.0.3 expression-list-in-declarator-initializer.html +--min-version 1.0.4 --max-version 1.9.9 extension-enable-and-disable.html --min-version 1.0.4 fragcolor-fragdata-invariant.html gl_position_unset.vert.html --min-version 1.0.4 global-variable-init.html diff --git a/sdk/tests/conformance/glsl/misc/extension-enable-and-disable.html b/sdk/tests/conformance/glsl/misc/extension-enable-and-disable.html new file mode 100644 index 000000000..d2bc1d475 --- /dev/null +++ b/sdk/tests/conformance/glsl/misc/extension-enable-and-disable.html @@ -0,0 +1,154 @@ + + + + + + +WebGL GLSL extension enable and disable late conformance test + + + + + + +
+
+ + + +