Files
Aislo/resources/tester/test_135_2_grayscale.py
T
eomsangdonandClaude Opus 5.5 895c6d4d3a fix(b05): 3D 흑백 지형 단추가 예상형상 지형에도 먹게 — 분할본 원래 색 · far 색 버퍼 따로 · 원래 색 = 색 버퍼 열쇠(135-2)
- _Split: 사본 색을 지형 원래 색(ORIGINAL_COLORS)으로 · far 색 버퍼 clone
- 뷰어 applyGrayscaleTo: 원래 색 기억을 메시 userData → 색 버퍼 열쇠(WeakMap) · ③ 사면 keepColor 그대로
- 새 시험 test_135_2_grayscale(+ 도우미)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QND7Co43B24zK2P937rdxt
2026-10-09 14:59:29 +09:00

25 lines
766 B
Python

# -*- coding: utf-8 -*-
"""PLAN 135-2 — B05 3D 흑백 지형 단추 검사.
도우미(helper_135_2_grayscale.cjs)가 분할본을 만들고 뷰어 흑백 규칙을 흉내 내어 결과(JSON)를 낸다.
분할본 색 = 지형 원래 색(흑백이 먼저 덮었어도) · far 색 버퍼 따로 · 원래 색 기억 = 색 버퍼 열쇠.
"""
import json
import os
import subprocess
HERE = os.path.dirname(os.path.abspath(__file__))
def test_grayscale_toggle_restores_original_colors():
proc = subprocess.run(
["node", os.path.join(HERE, "helper_135_2_grayscale.cjs")],
capture_output=True,
text=True,
timeout=120,
)
assert proc.returncode == 0, proc.stderr
r = json.loads(proc.stdout)
assert all(r.values()), r