add sql_table_overflow regression test

This commit is contained in:
Gavin Nishizawa 2022-12-17 17:46:52 -08:00
parent 6337274c3d
commit 212b7a9448
No known key found for this signature in database
GPG key ID: AE3B177777CE55CD
5 changed files with 317 additions and 0 deletions

View file

@ -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)

View 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": []
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 327 KiB

View 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": []
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 327 KiB