Skip to content

Commit

Permalink
Standalone: call out exceptions at the top of results
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 29, 2023
1 parent 0adb819 commit 2979ce0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/runtime/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ function makeCaseHTML(t: TestTreeLeaf): VisualizedSubtree {

if (caseResult.logs) {
caselogs.empty();
// Show exceptions at the top since they are often unexpected can point out an error in the test itself vs the WebGPU implementation.
caseResult.logs
.filter(l => l.name === 'EXCEPTION')
.forEach(l => {
$('<pre>').addClass('testcaselogtext').text(l.toJSON()).appendTo(caselogs);
});
for (const l of caseResult.logs) {
const caselog = $('<div>').addClass('testcaselog').appendTo(caselogs);
$('<button>')
Expand Down

0 comments on commit 2979ce0

Please sign in to comment.