Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jonfdxn1Xit9bdkNJpE4G
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 179-2 — 측구 줄 컴팩트(W16 (가)): 막힌 단추 숨김 · 「측구형식」 글 지움(툴팁) · 알약에 편측 쪽(소스 시험)."""
|
|
|
|
import os
|
|
import re
|
|
|
|
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
|
|
def _src(rel: str) -> str:
|
|
return open(os.path.join(ROOT, rel), encoding="utf-8").read()
|
|
|
|
|
|
def test_막힌_묶음은_숨김():
|
|
css = _src("B06_Section/B06_Section_UI_Style_Cross.css")
|
|
body = re.search(r"\.b06-design__seg--disabled\s*\{([^}]*)\}", css).group(1)
|
|
assert "display: none;" in body
|
|
assert "opacity" not in body
|
|
|
|
|
|
def test_측구형식_글_없이_툴팁():
|
|
cd = _src("B06_Section/B06_Section_UI_Cross_Design.ts")
|
|
seg = cd.split("const ditchTypeSeg = segment(", 1)[1].split(");", 1)[0]
|
|
assert seg.lstrip().startswith('"",')
|
|
assert 'ditchTypeSeg.title = L("B06_Design_DitchType_Legend");' in cd
|
|
|
|
|
|
def test_넘침_셈은_숨긴_칸_폭_간격_뺌():
|
|
cd = _src("B06_Section/B06_Section_UI_Cross_Design.ts")
|
|
assert "overflow -= width ? width + barGapPx : 0;" in cd
|
|
|
|
|
|
def test_알약에_편측_쪽():
|
|
lb = _src("ui_template/ui_template_locale_b2.ts")
|
|
assert 'B06_Design_Mode_LeftCut: ["편측 성토(좌 절토)"' in lb
|
|
assert 'B06_Design_Mode_RightCut: ["편측 성토(우 절토)"' in lb
|