Skip to content

Commit

Permalink
Show ignored partial-support webgl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Strilanc committed Jun 8, 2018
1 parent 862d0ae commit 5c30463
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/KarmaTestRunner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions test/TestUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5c30463

Please sign in to comment.