This commit is contained in:
Gavin Nishizawa 2023-06-09 14:10:04 -07:00
parent 5c4976156f
commit 405f1c9777
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD

View file

@ -1505,6 +1505,11 @@ x -> y: {
text: `x: {link: https://not-google.com; tooltip: https://google.com}`, text: `x: {link: https://not-google.com; tooltip: https://google.com}`,
expErr: `d2/testdata/d2compiler/TestCompile/no_url_link_and_url_tooltip_concurrently.d2:1:44: Tooltip cannot be set to URL when link is also set (for security)`, expErr: `d2/testdata/d2compiler/TestCompile/no_url_link_and_url_tooltip_concurrently.d2:1:44: Tooltip cannot be set to URL when link is also set (for security)`,
}, },
{
name: "url_link_non_url_tooltip_ok",
text: `x: {link: https://not-google.com; tooltip: note: url.ParseRequestURI might see this as a URL}`,
expErr: ``,
},
{ {
name: "url_link_and_not_url_tooltip_concurrently", name: "url_link_and_not_url_tooltip_concurrently",
text: `x: {link: https://google.com; tooltip: hello world}`, text: `x: {link: https://google.com; tooltip: hello world}`,