feat(web): workbench Outliner matches the desktop Layout geometry
The desktop golden comes from Blender's own laid-out screen data (tools/web/measure-outliner-desktop.py, blender 5.2.0 LTS, factory Layout at 1920x1080): right column 339 px, Outliner area 339x189 under a 26 px header, 20 px rows, 14 px per-level indent (0.7 * UI_UNIT_X). The workbench derives the right width and the Outliner/timeline split from those ratios so it reproduces the area at the reference size and scales elsewhere. The headed suite grows outliner-metrics-web with +-1 px assertions, and the runner now materializes inline base64 attachments so the checker can compare the measured boxes against the golden. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
191
tests/golden/OUTLINER-DESKTOP-METRICS/outliner-metrics.json
Normal file
191
tests/golden/OUTLINER-DESKTOP-METRICS/outliner-metrics.json
Normal file
@@ -0,0 +1,191 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"source": {
|
||||
"binary": "/home/mes123456/workinf_Blender_Wasm/build_blender_native/bin/blender",
|
||||
"version": "5.2.0 LTS",
|
||||
"factoryStartup": true,
|
||||
"screen": "Layout"
|
||||
},
|
||||
"preferences": {
|
||||
"dpi": 72.0,
|
||||
"uiScale": 1.0,
|
||||
"widgetUnit": 20
|
||||
},
|
||||
"contentExtent": {
|
||||
"width": 1918,
|
||||
"height": 1054
|
||||
},
|
||||
"areas": [
|
||||
{
|
||||
"type": "PROPERTIES",
|
||||
"x": 1579,
|
||||
"y": 23,
|
||||
"width": 339,
|
||||
"height": 839,
|
||||
"regions": [
|
||||
{
|
||||
"type": "HEADER",
|
||||
"x": 1579,
|
||||
"y": 836,
|
||||
"width": 339,
|
||||
"height": 26
|
||||
},
|
||||
{
|
||||
"type": "NAVIGATION_BAR",
|
||||
"x": 1579,
|
||||
"y": 23,
|
||||
"width": 29,
|
||||
"height": 813
|
||||
},
|
||||
{
|
||||
"type": "WINDOW",
|
||||
"x": 1608,
|
||||
"y": 23,
|
||||
"width": 310,
|
||||
"height": 813
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "OUTLINER",
|
||||
"x": 1579,
|
||||
"y": 865,
|
||||
"width": 339,
|
||||
"height": 189,
|
||||
"regions": [
|
||||
{
|
||||
"type": "HEADER",
|
||||
"x": 1579,
|
||||
"y": 1028,
|
||||
"width": 339,
|
||||
"height": 26
|
||||
},
|
||||
{
|
||||
"type": "WINDOW",
|
||||
"x": 1579,
|
||||
"y": 865,
|
||||
"width": 339,
|
||||
"height": 163
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "DOPESHEET_EDITOR",
|
||||
"x": 2,
|
||||
"y": 23,
|
||||
"width": 1574,
|
||||
"height": 74,
|
||||
"regions": [
|
||||
{
|
||||
"type": "HEADER",
|
||||
"x": 2,
|
||||
"y": 71,
|
||||
"width": 1574,
|
||||
"height": 26
|
||||
},
|
||||
{
|
||||
"type": "FOOTER",
|
||||
"x": 2,
|
||||
"y": 23,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "CHANNELS",
|
||||
"x": 2,
|
||||
"y": 23,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "UI",
|
||||
"x": 1575,
|
||||
"y": 23,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "WINDOW",
|
||||
"x": 2,
|
||||
"y": 23,
|
||||
"width": 1574,
|
||||
"height": 48
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "VIEW_3D",
|
||||
"x": 2,
|
||||
"y": 100,
|
||||
"width": 1574,
|
||||
"height": 954,
|
||||
"regions": [
|
||||
{
|
||||
"type": "HEADER",
|
||||
"x": 2,
|
||||
"y": 1028,
|
||||
"width": 1574,
|
||||
"height": 26
|
||||
},
|
||||
{
|
||||
"type": "TOOL_HEADER",
|
||||
"x": 2,
|
||||
"y": 1002,
|
||||
"width": 1574,
|
||||
"height": 26
|
||||
},
|
||||
{
|
||||
"type": "ASSET_SHELF",
|
||||
"x": 2,
|
||||
"y": 100,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "ASSET_SHELF_HEADER",
|
||||
"x": 2,
|
||||
"y": 100,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "TOOLS",
|
||||
"x": 2,
|
||||
"y": 100,
|
||||
"width": 56,
|
||||
"height": 902
|
||||
},
|
||||
{
|
||||
"type": "UI",
|
||||
"x": 1575,
|
||||
"y": 100,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "HUD",
|
||||
"x": 58,
|
||||
"y": 100,
|
||||
"width": 1,
|
||||
"height": 1
|
||||
},
|
||||
{
|
||||
"type": "WINDOW",
|
||||
"x": 2,
|
||||
"y": 100,
|
||||
"width": 1574,
|
||||
"height": 954
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"outliner": {
|
||||
"x": 1579,
|
||||
"y": 865,
|
||||
"width": 339,
|
||||
"height": 189,
|
||||
"headerHeight": 26,
|
||||
"rowHeight": 20,
|
||||
"indentPerLevel": 14
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user