Update webgl conformance tests (#33121)

* Update python -> python3 for helper script.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update webgl conformance testsuite patches.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Import WebGL conformance testsuite for August 19, 2024.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update expected results.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Track the commit used for webgl conformance test import.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-11-03 23:27:29 -05:00 committed by GitHub
parent e64831d68a
commit 5d1d3d6b5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4060 changed files with 100141 additions and 90094 deletions

View file

@ -1,12 +1,17 @@
--- js/js-test-pre.js
+++ js/js-test-pre.js
@@ -106,11 +106,25 @@
}
}
@@ -106,16 +106,25 @@
const locationPathname = window.location.pathname;
const webglTestHarness = window.parent.webglTestHarness;
-function reportTestResultsToHarness(success, msg) {
- if (window.parent.webglTestHarness) {
- window.parent.webglTestHarness.reportResults(window.location.pathname, success, msg);
- if (success) {
- RESULTS.pass += 1;
- } else {
- RESULTS.fail += 1;
- }
- if (webglTestHarness) {
- webglTestHarness.reportResults(locationPathname, success, msg);
+(function() {
+ var WPT_TEST_ID = 0;
+
@ -17,8 +22,8 @@
+ var wt_async_test = window.async_test;
+
+ window.reportTestResultsToHarness = function reportTestResultsToHarness(success, msg) {
+ if (window.parent.webglTestHarness) {
+ window.parent.webglTestHarness.reportResults(window.location.pathname, success, msg);
+ if (webglTestHarness) {
+ webglTestHarness.reportResults(locationPathname, success, msg);
+ } else if (wpt_test) { // WPT test harness
+ wpt_test(function () {
+ wpt_assert_true(success, msg);