add test
This commit is contained in:
parent
5c4976156f
commit
405f1c9777
1 changed files with 5 additions and 0 deletions
|
|
@ -1505,6 +1505,11 @@ x -> y: {
|
|||
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)`,
|
||||
},
|
||||
{
|
||||
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",
|
||||
text: `x: {link: https://google.com; tooltip: hello world}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue