From df4e6715cf31817878d73286d2d4b1ea1b7afdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20F=C3=A4rber?= <01mf02@gmail.com> Date: Fri, 20 Dec 2024 10:48:17 +0100 Subject: HTML tests (#5594) Co-authored-by: Laurenz --- tools/test-helper/src/extension.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/test-helper/src/extension.ts') diff --git a/tools/test-helper/src/extension.ts b/tools/test-helper/src/extension.ts index 1f2cbd26..2e2b7d21 100644 --- a/tools/test-helper/src/extension.ts +++ b/tools/test-helper/src/extension.ts @@ -121,7 +121,7 @@ class TestHelper { const lenses = []; for (let nr = 0; nr < document.lineCount; nr++) { const line = document.lineAt(nr); - const re = /^--- ([\d\w-]+) ---$/; + const re = /^--- ([\d\w-]+)( [\d\w-]+)* ---$/; const m = line.text.match(re); if (!m) { continue; @@ -143,7 +143,7 @@ class TestHelper { }), new vscode.CodeLens(line.range, { title: "Save", - tooltip: "Run and view the test and save the reference image", + tooltip: "Run and view the test and save the reference output", command: "typst-test-helper.saveFromLens", arguments: [name], }), -- cgit v1.2.3