add grid_even test

This commit is contained in:
Gavin Nishizawa 2023-04-28 17:50:18 -07:00
parent 807c450af2
commit 8409702ef0
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
6 changed files with 3322 additions and 0 deletions

View file

@ -2717,6 +2717,7 @@ scenarios: {
loadFromFile(t, "executive_grid"),
loadFromFile(t, "grid_animated"),
loadFromFile(t, "grid_gap"),
loadFromFile(t, "grid_even"),
loadFromFile(t, "ent2d2_basic"),
loadFromFile(t, "ent2d2_right"),
}

69
e2etests/testdata/files/grid_even.d2 vendored Normal file
View file

@ -0,0 +1,69 @@
row no growth: {
grid-rows: 2
# row 1
a.width: 620
# row 2 width equals row 1 (with 40 in-between each)
b.width: 200
c.width: 150
d.width: 100
e.width: 50
}
row 200 growth: {
grid-rows: 2
# row 1
a.width: 820
# row 2 needs to grow 200 to equal row 1
b.width: 200
# these 3 should grow proportionally until they reach b's width
c.width: 150
d.width: 100
e.width: 50
}
row big growth: {
grid-rows: 2
# row 1
a.width: 1420
# row 2 needs to grow 800
# these should all reach width 350
b.width: 200 # 0 + 150
c.width: 150 # 50 + 150
d.width: 100 # 100 + 150
e.width: 50 # 150 + 150
}
column no growth: {
grid-columns: 2
a.height: 620
b.height: 200
c.height: 150
d.height: 100
e.height: 50
}
column 200 growth: {
grid-columns: 2
a.height: 820
b.height: 200
c.height: 150
d.height: 100
e.height: 50
}
column big growth: {
grid-columns: 2
a.height: 1420
b.height: 200
c.height: 150
d.height: 100
e.height: 50
}

1524
e2etests/testdata/stable/grid_even/dagre/board.exp.json generated vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

1524
e2etests/testdata/stable/grid_even/elk/board.exp.json generated vendored Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB