add sql_table_overflow regression test
This commit is contained in:
parent
6337274c3d
commit
212b7a9448
5 changed files with 317 additions and 0 deletions
|
|
@ -52,6 +52,25 @@ foobar: {
|
|||
}
|
||||
foo -> foobar`,
|
||||
},
|
||||
{
|
||||
name: "sql_table_overflow",
|
||||
script: `
|
||||
table: sql_table_overflow {
|
||||
shape: sql_table
|
||||
short: loooooooooooooooooooong
|
||||
loooooooooooooooooooong: short
|
||||
}
|
||||
table_constrained: sql_table_constrained_overflow {
|
||||
shape: sql_table
|
||||
short: loooooooooooooooooooong {
|
||||
constraint: unique
|
||||
}
|
||||
loooooooooooooooooooong: short {
|
||||
constraint: foreign_key
|
||||
}
|
||||
}
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
||||
runa(t, tcs)
|
||||
|
|
|
|||
110
e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json
generated
vendored
Normal file
110
e2etests/testdata/regression/sql_table_overflow/dagre/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"name": "",
|
||||
"shapes": [
|
||||
{
|
||||
"id": "table",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"width": 387,
|
||||
"height": 108,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#FFFFFF",
|
||||
"stroke": "#0A0F25",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": "short",
|
||||
"type": "loooooooooooooooooooong",
|
||||
"constraint": "",
|
||||
"reference": ""
|
||||
},
|
||||
{
|
||||
"name": "loooooooooooooooooooong",
|
||||
"type": "short",
|
||||
"constraint": "",
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "sql_table_overflow",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "#0A0F25",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 211,
|
||||
"labelHeight": 36,
|
||||
"zIndex": 0,
|
||||
"level": 1
|
||||
},
|
||||
{
|
||||
"id": "table_constrained",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 447,
|
||||
"y": 0
|
||||
},
|
||||
"width": 486,
|
||||
"height": 108,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#FFFFFF",
|
||||
"stroke": "#0A0F25",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": "short",
|
||||
"type": "loooooooooooooooooooong",
|
||||
"constraint": "unique",
|
||||
"reference": ""
|
||||
},
|
||||
{
|
||||
"name": "loooooooooooooooooooong",
|
||||
"type": "short",
|
||||
"constraint": "foreign_key",
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "sql_table_constrained_overflow",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "#0A0F25",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 350,
|
||||
"labelHeight": 36,
|
||||
"zIndex": 0,
|
||||
"level": 1
|
||||
}
|
||||
],
|
||||
"connections": []
|
||||
}
|
||||
39
e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg
vendored
Normal file
39
e2etests/testdata/regression/sql_table_overflow/dagre/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 327 KiB |
110
e2etests/testdata/regression/sql_table_overflow/elk/board.exp.json
generated
vendored
Normal file
110
e2etests/testdata/regression/sql_table_overflow/elk/board.exp.json
generated
vendored
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
{
|
||||
"name": "",
|
||||
"shapes": [
|
||||
{
|
||||
"id": "table",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 12,
|
||||
"y": 12
|
||||
},
|
||||
"width": 387,
|
||||
"height": 108,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#FFFFFF",
|
||||
"stroke": "#0A0F25",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": "short",
|
||||
"type": "loooooooooooooooooooong",
|
||||
"constraint": "",
|
||||
"reference": ""
|
||||
},
|
||||
{
|
||||
"name": "loooooooooooooooooooong",
|
||||
"type": "short",
|
||||
"constraint": "",
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "sql_table_overflow",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "#0A0F25",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 211,
|
||||
"labelHeight": 36,
|
||||
"zIndex": 0,
|
||||
"level": 1
|
||||
},
|
||||
{
|
||||
"id": "table_constrained",
|
||||
"type": "sql_table",
|
||||
"pos": {
|
||||
"x": 419,
|
||||
"y": 12
|
||||
},
|
||||
"width": 486,
|
||||
"height": 108,
|
||||
"opacity": 1,
|
||||
"strokeDash": 0,
|
||||
"strokeWidth": 2,
|
||||
"borderRadius": 0,
|
||||
"fill": "#FFFFFF",
|
||||
"stroke": "#0A0F25",
|
||||
"shadow": false,
|
||||
"3d": false,
|
||||
"multiple": false,
|
||||
"tooltip": "",
|
||||
"link": "",
|
||||
"icon": null,
|
||||
"iconPosition": "",
|
||||
"blend": false,
|
||||
"fields": null,
|
||||
"methods": null,
|
||||
"columns": [
|
||||
{
|
||||
"name": "short",
|
||||
"type": "loooooooooooooooooooong",
|
||||
"constraint": "unique",
|
||||
"reference": ""
|
||||
},
|
||||
{
|
||||
"name": "loooooooooooooooooooong",
|
||||
"type": "short",
|
||||
"constraint": "foreign_key",
|
||||
"reference": ""
|
||||
}
|
||||
],
|
||||
"label": "sql_table_constrained_overflow",
|
||||
"fontSize": 20,
|
||||
"fontFamily": "DEFAULT",
|
||||
"language": "",
|
||||
"color": "#0A0F25",
|
||||
"italic": false,
|
||||
"bold": true,
|
||||
"underline": false,
|
||||
"labelWidth": 350,
|
||||
"labelHeight": 36,
|
||||
"zIndex": 0,
|
||||
"level": 1
|
||||
}
|
||||
],
|
||||
"connections": []
|
||||
}
|
||||
39
e2etests/testdata/regression/sql_table_overflow/elk/sketch.exp.svg
vendored
Normal file
39
e2etests/testdata/regression/sql_table_overflow/elk/sketch.exp.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 327 KiB |
Loading…
Reference in a new issue