Allow webgl tests using unit test harness to run to completion.

This commit is contained in:
Josh Matthews 2018-07-25 17:26:37 -04:00
parent 4c5a7eaa14
commit ad1c546973
10 changed files with 64 additions and 8 deletions

View file

@ -30472,6 +30472,11 @@
[
{}
]
],
"webgl/tools/unit2.patch": [
[
{}
]
]
},
"testharness": {
@ -73039,7 +73044,7 @@
"support"
],
"webgl/conformance-1.0.3/conformance/more/unit.js": [
"e0d1158bdc411b87961a4c67abeb3dceed506008",
"82efd8b7a11d3ac344a3e1b563e99503f452226e",
"support"
],
"webgl/conformance-1.0.3/conformance/more/util.js": [
@ -99147,7 +99152,7 @@
"testharness"
],
"webgl/tools/import-conformance-tests.py": [
"73e9fad27290f3f10246390fca47bfeb64bc86ec",
"9e5e82b781ef02299db6406754b7d1d8abeb3c54",
"support"
],
"webgl/tools/js-test-pre.patch": [
@ -99166,6 +99171,10 @@
"1d3713862875b47ae9c07462e6962eb21e40e404",
"support"
],
"webgl/tools/unit2.patch": [
"cdccf819e756a9443f2ccf41b393b76fe5c398e9",
"support"
],
"webgl/uniformMatrixNfv.html": [
"f53e7687ad6aef0ffc064d941a05a222c33fde56",
"testharness"

View file

@ -1,3 +0,0 @@
[quickCheckAPI-G_I.html]
type: testharness
disabled: https://github.com/servo/servo/issues/10656

View file

@ -0,0 +1,4 @@
[copyTexSubImage2D.html]
[WebGL test #1: testRoundtrip]
expected: FAIL

View file

@ -0,0 +1,7 @@
[readPixelsBadArgs.html]
[WebGL test #1: testReadPixelsSOPIMG]
expected: FAIL
[WebGL test #2: testReadPixelsSOPCanvas]
expected: FAIL

View file

@ -0,0 +1,4 @@
[texImage2DHTML.html]
[WebGL test #1: testTexImage2DNonSOP]
expected: FAIL

View file

@ -0,0 +1,4 @@
[texSubImage2DHTML.html]
[WebGL test #1: testTexImage2DNonSOP]
expected: FAIL

View file

@ -1,3 +0,0 @@
[uniformOutOfBounds.html]
type: testharness
disabled: https://github.com/servo/servo/issues/13662

View file

@ -53,6 +53,10 @@ if (window.internals) {
window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
}
if (window.async_test) {
var __overall_test = async_test('Overall test');
}
/* -- end platform specific code --*/
Tests = {
autorun : true,
@ -907,6 +911,9 @@ function notifyFinishedToHarness() {
if (window.parent.webglTestHarness) {
window.parent.webglTestHarness.notifyFinished(window.location.pathname);
}
if (window.__overall_test) {
window.__overall_test.done();
}
}
function initTests() {

View file

@ -13,12 +13,14 @@ KHRONOS_REPO_URL = "https://github.com/KhronosGroup/WebGL.git"
PATCHES_1X = [
("js-test-pre.patch", "resources/js-test-pre.js"),
("unit.patch", "conformance/more/unit.js"),
("unit2.patch", "conformance/more/unit.js"),
("timeout.patch", None)
]
# Patches for conformance tests 2.0.x
PATCHES_2X = [
("js-test-pre2.patch", "js/js-test-pre.js"),
("unit.patch", "conformance/more/unit.js")
("unit2.patch", "conformance/more/unit.js")
]
# Fix for 'UnicodeDecodeError: 'ascii' codec can't decode byte'

View file

@ -0,0 +1,25 @@
diff --git a/conformance-suites/1.0.3/conformance/more/unit.js b/conformance-suits/1.0.3/conformance/more/unit.js
index 742f8d7b9d..428c164699 100644
--- a/conformance-suites/1.0.3/conformance/more/unit.js
+++ b/conformance-suites/1.0.3/conformance/more/unit.js
@@ -53,6 +53,10 @@ if (window.internals) {
window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
}
+if (window.async_test) {
+ var __overall_test = async_test('Overall test');
+}
+
/* -- end platform specific code --*/
Tests = {
autorun : true,
@@ -907,6 +911,9 @@ function notifyFinishedToHarness() {
if (window.parent.webglTestHarness) {
window.parent.webglTestHarness.notifyFinished(window.location.pathname);
}
+ if (window.__overall_test) {
+ window.__overall_test.done();
+ }
}
function initTests() {