diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-08-25 00:46:42 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-08-25 03:43:32 +0200 |
commit | 4852f7d6160a1a3af3bf834d16e7ff1c29dfc0cc (patch) | |
tree | d7a6e07778d7d5d5574890976c7d2172b2416e6e /tests/wpt/webgl/tools/unit.patch | |
parent | d827370804c34d8422c08db0e2941c62cb237a52 (diff) | |
download | servo-4852f7d6160a1a3af3bf834d16e7ff1c29dfc0cc.tar.gz servo-4852f7d6160a1a3af3bf834d16e7ff1c29dfc0cc.zip |
Move Khronos WebGL tests to /_webgl/
Diffstat (limited to 'tests/wpt/webgl/tools/unit.patch')
-rw-r--r-- | tests/wpt/webgl/tools/unit.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/wpt/webgl/tools/unit.patch b/tests/wpt/webgl/tools/unit.patch new file mode 100644 index 00000000000..43c57b9dbb4 --- /dev/null +++ b/tests/wpt/webgl/tools/unit.patch @@ -0,0 +1,19 @@ +diff --git a/conformance-suites/1.0.3/conformance/more/unit.js b/conformance-suites/1.0.3/conformance/more/unit.js +index 89f4e87..742f8d7 100644 +--- a/conformance-suites/1.0.3/conformance/more/unit.js ++++ b/conformance-suites/1.0.3/conformance/more/unit.js +@@ -892,9 +892,14 @@ GLConstants = [ + 0x809D + ]; + ++var WPT_TEST_ID = 0; + function reportTestResultsToHarness(success, msg) { + if (window.parent.webglTestHarness) { + window.parent.webglTestHarness.reportResults(window.location.pathname, success, msg); ++ } else if (window.test) { // WPT test harness ++ test(function () { ++ assert_true(success, msg); ++ }, "WebGL test #" + (WPT_TEST_ID++) + ": " + msg); + } + } + |