Make use of window.onerror in Khronos tests

This commit is contained in:
Anthony Ramine 2018-08-27 21:43:29 +02:00
parent 6089e45b7d
commit 273aac87e4
47 changed files with 8 additions and 135 deletions

View file

@ -30,14 +30,15 @@
function reportSkippedTestResultsToHarness(success, msg) {
if (window.parent.webglTestHarness) {
@@ -127,6 +141,12 @@
@@ -127,6 +141,13 @@
}
}
+(function () {
+ var oldNotify = notifyFinishedToHarness;
+ var t = async_test("Overall test");
+ window.notifyFinishedToHarness = t.step_func_done(oldNotify);
+ var done = t.step_func_done(notifyFinishedToHarness);
+ window.notifyFinishedToHarness = done;
+ window.addEventListener("error", done);
+}())
+
var _bufferedConsoleLogs = [];