"""552-3 부품 「범례」 지킴 시험 — 칩 14 × 10 · 선 · 점선 · 점 · 꺼짐 · 색은 부르는 쪽.""" from test_552_3_card import _text, check_part def test_legend(): check_part( "legend", "ui_template_flow_legend.ts", ["ui_template_flow_legend.css"], ["createLegend"], [ "ui-legend", "ui-legend__item", "ui-legend__mark", "ui-legend--vertical", "ui-flow-legend", ], ) css = _text("ui_template_flow_legend.css") for kind in ("line", "dash", "dot"): assert f".ui-legend__mark--{kind}" in css assert "width: 14px;\n height: 10px;" in css and ".is-off" in css assert 'kind?: "chip" | "line" | "dash" | "dot"' in _text("ui_template_flow_legend.ts")