Allow async webgl conformance tests to complete.

This commit is contained in:
Josh Matthews 2017-02-17 17:04:44 -05:00
parent b174a684d1
commit 5af2603ec4
140 changed files with 1481 additions and 5 deletions

View file

@ -78,7 +78,7 @@ function nonKhronosFrameworkNotifyDone() {
// if found, since it's overriden by some tests.
var wpt_test = window.test;
var wpt_assert_true = window.assert_true;
var wt_async_test = window.async_test;
window.reportTestResultsToHarness = function reportTestResultsToHarness(success, msg) {
if (window.parent.webglTestHarness) {
@ -100,6 +100,12 @@ function notifyFinishedToHarness() {
}
}
(function() {
var oldNotify = notifyFinishedToHarness;
var t = async_test("Overall test");
window.notifyFinishedToHarness = t.step_func_done(oldNotify);
}())
function _logToConsole(msg)
{
if (window.console)

View file

@ -14,7 +14,7 @@
+ // if found, since it's overriden by some tests.
+ var wpt_test = window.test;
+ var wpt_assert_true = window.assert_true;
+
+ var wt_async_test = window.async_test;
+
+ window.reportTestResultsToHarness = function reportTestResultsToHarness(success, msg) {
+ if (window.parent.webglTestHarness) {
@ -30,6 +30,19 @@
function notifyFinishedToHarness() {
if (window.parent.webglTestHarness) {
@@ -100,2 +100,2 @@ function notifyFinishedToHarness() {
}
}
+(function() {
+ var oldNotify = notifyFinishedToHarness;
+ var t = async_test("Overall test");
+ window.notifyFinishedToHarness = t.step_func_done(oldNotify);
+}())
+
function _logToConsole(msg)
{
if (window.console)
@@ -92,7 +106,7 @@
window.console.log(msg);
}