mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make use of window.onerror in Khronos tests
This commit is contained in:
parent
6089e45b7d
commit
273aac87e4
47 changed files with 8 additions and 135 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue