d2/e2etests/todo_test.go
2022-11-30 11:45:27 -08:00

73 lines
1.3 KiB
Go

package e2etests
import (
_ "embed"
"testing"
)
func testTodo(t *testing.T) {
tcs := []testCase{
{
// issue https://github.com/terrastruct/d2/issues/71
name: "container_child_edge",
script: `
container.first -> container.second: 1->2
container -> container.second: c->2
`,
},
{
// issue https://github.com/terrastruct/d2/issues/263
name: "tall_edge_label",
script: `
a -> b: There\nonce\nwas\na\nvery\ntall\nedge\nlabel
`,
},
{
// issue https://github.com/terrastruct/d2/issues/263
name: "font_sizes_large",
script: `
eight.style.font-size: 8
sixteen.style.font-size: 16
thirty two.style.font-size: 32
sixty four.style.font-size: 64
ninety nine.style.font-size: 99
eight -> sixteen : twelve {
style.font-size: 12
}
sixteen -> thirty two : twenty four {
style.font-size: 24
}
thirty two -> sixty four: forty eight {
style.font-size: 48
}
sixty four -> ninety nine: eighty one {
style.font-size: 81
}
`,
},
{
// issue https://github.com/terrastruct/d2/issues/19
name: "font_sizes_containers_large",
script: `
ninety nine: {
style.font-size: 99
sixty four: {
style.font-size: 64
thirty two:{
style.font-size: 32
sixteen: {
style.font-size: 16
eight: {
style.font-size: 8
}
}
}
}
}
`,
},
}
runa(t, tcs)
}