From e9dc4bb20404037cf192c19f00a010ff3bb1a10b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 23 Jun 2025 11:12:58 +0200 Subject: Typed HTML API (#6476) --- crates/typst-ide/src/complete.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/typst-ide/src/complete.rs') diff --git a/crates/typst-ide/src/complete.rs b/crates/typst-ide/src/complete.rs index 47727743..53642331 100644 --- a/crates/typst-ide/src/complete.rs +++ b/crates/typst-ide/src/complete.rs @@ -1848,4 +1848,13 @@ mod tests { .must_include(["\"New Computer Modern Math\""]) .must_exclude(["\"Libertinus Serif\""]); } + + #[test] + fn test_autocomplete_typed_html() { + test("#html.div(translate: )", -2) + .must_include(["true", "false"]) + .must_exclude(["\"yes\"", "\"no\""]); + test("#html.input(value: )", -2).must_include(["float", "string", "red", "blue"]); + test("#html.div(role: )", -2).must_include(["\"alertdialog\""]); + } } -- cgit v1.2.3