mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
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:
parent
e64831d68a
commit
5d1d3d6b5a
4060 changed files with 100141 additions and 90094 deletions
19
tests/wpt/webgl/tools/js-test-pre.patch
vendored
19
tests/wpt/webgl/tools/js-test-pre.patch
vendored
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue