From a9f0d5978b593e6f7039e54b9b6638c484b9abdc Mon Sep 17 00:00:00 2001 From: Gavin Nishizawa Date: Mon, 5 Dec 2022 11:41:35 -0800 Subject: [PATCH] update tests --- .../dagre/board.exp.json | 78 ++++++++++++++ .../dagre/sketch.exp.svg | 4 +- .../dagre_id_with_newline/elk/board.exp.json | 80 +++++++++++++- .../dagre_id_with_newline/elk/sketch.exp.svg | 4 +- .../TestCompile/unescaped_id_cr.exp.json | 102 ++++++++++++++++++ 5 files changed, 263 insertions(+), 5 deletions(-) create mode 100644 testdata/d2compiler/TestCompile/unescaped_id_cr.exp.json diff --git a/e2etests/testdata/regression/dagre_id_with_newline/dagre/board.exp.json b/e2etests/testdata/regression/dagre_id_with_newline/dagre/board.exp.json index 4366386d6..be2cc9969 100644 --- a/e2etests/testdata/regression/dagre_id_with_newline/dagre/board.exp.json +++ b/e2etests/testdata/regression/dagre_id_with_newline/dagre/board.exp.json @@ -39,6 +39,84 @@ "labelPosition": "INSIDE_MIDDLE_CENTER", "zIndex": 0, "level": 1 + }, + { + "id": "eighty\reight", + "type": "", + "pos": { + "x": 211, + "y": 8 + }, + "width": 151, + "height": 126, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "#F7F8FE", + "stroke": "#0D32B2", + "shadow": false, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "eighty\reight", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 51, + "labelHeight": 26, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 + }, + { + "id": "\"seventy\r\\nseven\"", + "type": "", + "pos": { + "x": 422, + "y": 0 + }, + "width": 162, + "height": 142, + "opacity": 1, + "strokeDash": 0, + "strokeWidth": 2, + "borderRadius": 0, + "fill": "#F7F8FE", + "stroke": "#0D32B2", + "shadow": false, + "3d": false, + "multiple": false, + "tooltip": "", + "link": "", + "icon": null, + "iconPosition": "", + "fields": null, + "methods": null, + "columns": null, + "label": "seventy\r\nseven", + "fontSize": 16, + "fontFamily": "DEFAULT", + "language": "", + "color": "#0A0F25", + "italic": false, + "bold": true, + "underline": false, + "labelWidth": 62, + "labelHeight": 42, + "labelPosition": "INSIDE_MIDDLE_CENTER", + "zIndex": 0, + "level": 1 } ], "connections": [] diff --git a/e2etests/testdata/regression/dagre_id_with_newline/dagre/sketch.exp.svg b/e2etests/testdata/regression/dagre_id_with_newline/dagre/sketch.exp.svg index c9c9cf7da..eeb82e050 100644 --- a/e2etests/testdata/regression/dagre_id_with_newline/dagre/sketch.exp.svg +++ b/e2etests/testdata/regression/dagre_id_with_newline/dagre/sketch.exp.svg @@ -2,7 +2,7 @@