From 2979ce07231ba66e06675c83e1cdd3c483165820 Mon Sep 17 00:00:00 2001 From: Greggman Date: Wed, 29 Nov 2023 13:04:31 +0900 Subject: [PATCH] Standalone: call out 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 17500fff6748..2c650b4544e5 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); $('