Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QND7Co43B24zK2P937rdxt
28 lines
910 B
Python
28 lines
910 B
Python
# -*- coding: utf-8 -*-
|
|
"""PLAN 176-2 — B05 3D 흑백 지형 · 등고선 처음 값 false(단추 · 뷰어 두 곳 다)."""
|
|
|
|
import os
|
|
import re
|
|
|
|
ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..")
|
|
|
|
|
|
def _read(name):
|
|
with open(os.path.join(ROOT, "B05_Profile", name), encoding="utf-8") as f:
|
|
return f.read()
|
|
|
|
|
|
def test_panel_buttons_start_off():
|
|
src = _read("B05_Profile_UI_Panel_View.ts")
|
|
assert re.search(r'toggleButton\("등고선", false,', src)
|
|
assert re.search(r'toggleButton\("흑백 지형", false,', src)
|
|
|
|
|
|
def test_viewer_starts_off():
|
|
src = _read("B05_Profile_UI_Viewer.ts")
|
|
assert "let surfaceGrayscale = false;" in src
|
|
# 등고선 그룹은 만들자마자 숨김(적재 때 선은 그대로 만들고 단추로 켬)
|
|
assert re.search(
|
|
r"const contours = new THREE\.Group\(\);\s*\n\s*contours\.visible = false;", src
|
|
)
|