summaryrefslogtreecommitdiff
path: root/crates/typst-ide/src/complete.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-06-23 11:12:58 +0200
committerGitHub <noreply@github.com>2025-06-23 09:12:58 +0000
commite9dc4bb20404037cf192c19f00a010ff3bb1a10b (patch)
tree46dca870d8809b7749f5e00e4c40aa23d909c521 /crates/typst-ide/src/complete.rs
parent3602d06a155a0567fe2b2e75a4d5970578d0f14f (diff)
Typed HTML API (#6476)
Diffstat (limited to 'crates/typst-ide/src/complete.rs')
-rw-r--r--crates/typst-ide/src/complete.rs9
1 files changed, 9 insertions, 0 deletions
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\""]);
+ }
}