Skip to content

Commit 2979ce0

Browse files
authored
Standalone: call out exceptions at the top of results
1 parent 0adb819 commit 2979ce0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/common/runtime/standalone.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ function makeCaseHTML(t: TestTreeLeaf): VisualizedSubtree {
223223

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

0 commit comments

Comments
 (0)