From 3b53bc5ff1b81ef8f935674e94b96472034769ba Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Wed, 27 Sep 2023 15:30:40 -0700 Subject: [PATCH] simpler testing --- e2etests/e2e_test.go | 2 +- .../files/grid_nested_simple_edges.d2 | 70 ++++++++++--------- 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/e2etests/e2e_test.go b/e2etests/e2e_test.go index 7d8a45c5d..15fb4361d 100644 --- a/e2etests/e2e_test.go +++ b/e2etests/e2e_test.go @@ -137,7 +137,7 @@ func run(t *testing.T, tc testCase) { } layoutsTested := []string{"dagre"} - if !tc.justDagre { + if !tc.justDagre && false { layoutsTested = append(layoutsTested, "elk") } diff --git a/e2etests/testdata/files/grid_nested_simple_edges.d2 b/e2etests/testdata/files/grid_nested_simple_edges.d2 index 8148fffed..06e713f5c 100644 --- a/e2etests/testdata/files/grid_nested_simple_edges.d2 +++ b/e2etests/testdata/files/grid_nested_simple_edges.d2 @@ -1,43 +1,45 @@ direction: right -outer-grid -> outer-container +# outer-grid -> outer-container -outer-grid: { - grid-columns: 1 +# outer-grid: { +grid-columns: 1 - inner-grid -> container -> etc +# okok # -> container # -> etc - container: { - label.near: top-left - # edges not yet supported here since they must be direct grid children - a - b - c - } +container: { + label.near: top-left + # edges not yet supported here since they must be direct grid children + a + b + # c - inner-grid: { - grid-rows: 1 - 1 - 2 - 3 - # edges here are not supported yet since this is inside another grid - } + a -> b } -outer-container: { - grid -> container +# inner-grid: { +# # grid-rows: 1 +# # 1 +# # 2 +# # 3 +# # edges here are not supported yet since this is inside another grid +# } +# } - grid: { - grid-rows: 1 - # direct child edges ok in least nested grid - 1 -> 2 -> 3 - } +# outer-container: { +# grid -> container - container: { - # non grid edges ok - 4 -> 5 -> 6 - nested container: { - # nested non grid edges ok - 7 -> 8 - } - } -} +# grid: { +# grid-rows: 1 +# # direct child edges ok in least nested grid +# 1 -> 2 -> 3 +# } + +# container: { +# # non grid edges ok +# 4 -> 5 -> 6 +# nested container: { +# # nested non grid edges ok +# 7 -> 8 +# } +# } +# }