From eb7677fb7c447199582563e85fdc8ef770ec8e5c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Fri, 10 Nov 2023 18:06:29 +0900 Subject: [PATCH] Callout exceptions at the top of results --- src/common/runtime/standalone.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/runtime/standalone.ts b/src/common/runtime/standalone.ts index 0376f92dda63..8553a60113ae 100644 --- a/src/common/runtime/standalone.ts +++ b/src/common/runtime/standalone.ts @@ -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 => { + $('
').addClass('testcaselogtext').text(l.toJSON()).appendTo(caselogs);
+            });
           for (const l of caseResult.logs) {
             const caselog = $('
').addClass('testcaselog').appendTo(caselogs); $('