Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jonfdxn1Xit9bdkNJpE4G
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 179-1 — 선 길이 정보창 = 열 수 무관 늘 줌 [+ − ⤢] 왼쪽(좁은 카드 내림 규칙 지움 · 소스 시험)."""
|
|
|
|
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_Controls.css")
|
|
assert "@container" not in css
|
|
# 치수 칸 규칙은 기본 꼴 · 숨김(+ 옆 단추) 뿐 — 절대 자리 · 왼선 지움 규칙 없음
|
|
assert re.findall(r"\.b06-cross-card__line-dims[^{,;]*\{", css) == [
|
|
".b06-cross-card__line-dims {",
|
|
".b06-cross-card__line-dims[hidden] {",
|
|
".b06-cross-card__line-dims[hidden] + .b06-cross-card__zoom-btn {",
|
|
]
|
|
|
|
|
|
def test_치수_칸은_줌_막대_맨_앞():
|
|
view = _src("B06_Section/B06_Section_UI_Cross_View.ts")
|
|
assert "zoomBar.prepend(linePick.label);" in view
|
|
zoom = (
|
|
_src("B06_Section/B06_Section_UI_Style_Cross_Controls.css")
|
|
.split(".b06-cross-card__zoom {", 1)[1]
|
|
.split("}", 1)[0]
|
|
)
|
|
assert "display: flex;" in zoom and "position: absolute;" in zoom
|