From c054538ae293fdf075f3e7aef8fcea1b9a3d5b52 Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Mon, 19 Dec 2022 17:46:33 -0800 Subject: [PATCH] update tests --- .../sql_table_overflow/dagre/board.exp.json | 110 ++++- .../sql_table_overflow/dagre/sketch.exp.svg | 22 +- .../sql_table_overflow/elk/board.exp.json | 108 ++++- .../sql_table_overflow/elk/sketch.exp.svg | 22 +- .../dagre/board.exp.json | 60 ++- .../dagre/sketch.exp.svg | 14 +- .../elk/board.exp.json | 60 ++- .../elk/sketch.exp.svg | 14 +- .../stable/sql_tables/dagre/board.exp.json | 454 ++++++++++++++++-- .../stable/sql_tables/dagre/sketch.exp.svg | 70 +-- .../stable/sql_tables/elk/board.exp.json | 450 +++++++++++++++-- .../stable/sql_tables/elk/sketch.exp.svg | 70 +-- .../TestCompile/edge_column_index.exp.json | 104 +++- .../TestCompile/edge_in_column.exp.json | 26 +- .../TestCompile/nested_sql.exp.json | 52 +- .../d2compiler/TestCompile/sql_paren.exp.json | 52 +- .../TestCompile/table_style.exp.json | 26 +- .../TestCompile/table_style_map.exp.json | 26 +- .../TestDelete/shape_sql_table.exp.json | 26 +- 19 files changed, 1499 insertions(+), 267 deletions(-) diff --git a/e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json b/e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json index e0fe6ef2c..1607ab8c2 100644 --- a/e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json +++ b/e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json @@ -8,7 +8,7 @@ "x": 0, "y": 0 }, - "width": 533, + "width": 534, "height": 108, "opacity": 1, "strokeDash": 0, @@ -28,14 +28,58 @@ "methods": null, "columns": [ { - "name": "short", - "type": "loooooooooooooooooooong", + "name": { + "label": "short", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 45, + "labelHeight": 26 + }, + "type": { + "label": "loooooooooooooooooooong", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 242, + "labelHeight": 26 + }, "constraint": "", "reference": "" }, { - "name": "loooooooooooooooooooong", - "type": "short", + "name": { + "label": "loooooooooooooooooooong", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 242, + "labelHeight": 26 + }, + "type": { + "label": "short", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 45, + "labelHeight": 26 + }, "constraint": "", "reference": "" } @@ -57,10 +101,10 @@ "id": "table_constrained", "type": "sql_table", "pos": { - "x": 593, + "x": 594, "y": 0 }, - "width": 593, + "width": 594, "height": 108, "opacity": 1, "strokeDash": 0, @@ -80,14 +124,58 @@ "methods": null, "columns": [ { - "name": "short", - "type": "loooooooooooooooooooong", + "name": { + "label": "short", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 45, + "labelHeight": 26 + }, + "type": { + "label": "loooooooooooooooooooong", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 242, + "labelHeight": 26 + }, "constraint": "unique", "reference": "" }, { - "name": "loooooooooooooooooooong", - "type": "short", + "name": { + "label": "loooooooooooooooooooong", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 242, + "labelHeight": 26 + }, + "type": { + "label": "short", + "fontSize": 0, + "fontFamily": "", + "language": "", + "color": "", + "italic": false, + "bold": false, + "underline": false, + "labelWidth": 45, + "labelHeight": 26 + }, "constraint": "foreign_key", "reference": "" } diff --git a/e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg b/e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg index 6cd9bba90..789904d74 100644 --- a/e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg @@ -2,7 +2,7 @@ sql_table_overflowshort +loooooooooooooooooooong +loooooooooooooooooooong +short +sql_table_constrained_overflowshort +loooooooooooooooooooong +UNQloooooooooooooooooooong +short +FK + sql_table_overflowshort -loooooooooooooooooooong -loooooooooooooooooooong -short -sql_table_constrained_overflowshort -loooooooooooooooooooong -UNQloooooooooooooooooooong -short -FK - +sql_table_overflowshort +loooooooooooooooooooong +loooooooooooooooooooong +short +sql_table_constrained_overflowshort +loooooooooooooooooooong +UNQloooooooooooooooooooong +short +FK + usersid -int -name -string -email -string -password -string -last_login -datetime -productsid -int -price -decimal -sku -string -name -string -ordersid -int -user_id -int -product_id -int -shipmentsid -int -order_id -int -tracking_number -string -status -string - - +usersid +int +name +string +email +string +password +string +last_login +datetime +productsid +int +price +decimal +sku +string +name +string +ordersid +int +user_id +int +product_id +int +shipmentsid +int +order_id +int +tracking_number +string +status +string + + usersid -int -name -string -email -string -password -string -last_login -datetime -productsid -int -price -decimal -sku -string -name -string -ordersid -int -user_id -int -product_id -int -shipmentsid -int -order_id -int -tracking_number -string -status -string - - +usersid +int +name +string +email +string +password +string +last_login +datetime +productsid +int +price +decimal +sku +string +name +string +ordersid +int +user_id +int +product_id +int +shipmentsid +int +order_id +int +tracking_number +string +status +string + +