From 5c30463065ae452b7693739b5ba12a355e92d977 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Fri, 8 Jun 2018 03:42:38 -0300 Subject: [PATCH] Show ignored partial-support webgl errors --- test/KarmaTestRunner.test.js | 8 ++++++++ test/TestUtil.js | 1 + 2 files changed, 9 insertions(+) diff --git a/test/KarmaTestRunner.test.js b/test/KarmaTestRunner.test.js index 181dfcf5..d48f50e2 100644 --- a/test/KarmaTestRunner.test.js +++ b/test/KarmaTestRunner.test.js @@ -73,6 +73,14 @@ let promiseRunTest = (suite, name, method) => { status.warn_failure_message : `${suite.name}.${name} FAILED, but is set to warn_only (${status.warn_only})`; console.warn(msg); + + if (status.warn_show_error) { + for (let logMsg of result.log) { + for (let line of logMsg.split('\n')) { + console.warn('(ignored) ' + line); + } + } + } } result.success = status.warn_only; return finish(); diff --git a/test/TestUtil.js b/test/TestUtil.js index f614964d..00b3235e 100644 --- a/test/TestUtil.js +++ b/test/TestUtil.js @@ -427,6 +427,7 @@ export class Suite { status.warn_only = true; status.ignore_warn_only_on_success = true; status.warn_failure_message = `Ignoring ${this.name}.${caseName} failure due to lack of WebGL support.`; + status.warn_show_error = true; } let preTexCount = WglTexturePool.getUnReturnedTextureCount();