mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Allow async webgl conformance tests to complete.
This commit is contained in:
parent
b174a684d1
commit
5af2603ec4
140 changed files with 1481 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue