add grid_even test
This commit is contained in:
parent
807c450af2
commit
8409702ef0
6 changed files with 3322 additions and 0 deletions
|
|
@ -2717,6 +2717,7 @@ scenarios: {
|
||||||
loadFromFile(t, "executive_grid"),
|
loadFromFile(t, "executive_grid"),
|
||||||
loadFromFile(t, "grid_animated"),
|
loadFromFile(t, "grid_animated"),
|
||||||
loadFromFile(t, "grid_gap"),
|
loadFromFile(t, "grid_gap"),
|
||||||
|
loadFromFile(t, "grid_even"),
|
||||||
loadFromFile(t, "ent2d2_basic"),
|
loadFromFile(t, "ent2d2_basic"),
|
||||||
loadFromFile(t, "ent2d2_right"),
|
loadFromFile(t, "ent2d2_right"),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
69
e2etests/testdata/files/grid_even.d2
vendored
Normal file
69
e2etests/testdata/files/grid_even.d2
vendored
Normal 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
1524
e2etests/testdata/stable/grid_even/dagre/board.exp.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
102
e2etests/testdata/stable/grid_even/dagre/sketch.exp.svg
vendored
Normal file
102
e2etests/testdata/stable/grid_even/dagre/sketch.exp.svg
vendored
Normal file
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
1524
e2etests/testdata/stable/grid_even/elk/board.exp.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
102
e2etests/testdata/stable/grid_even/elk/sketch.exp.svg
vendored
Normal file
102
e2etests/testdata/stable/grid_even/elk/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 24 KiB |
Loading…
Reference in a new issue