원본 좌표와 브라우저 검증 결과 및 실행 수정 안내 기록

This commit is contained in:
김지영 committed 2026-10-20 11:03:43 +09:00
1 parent d01ef8b0e8
commit fac29cb010
17 files changed
+358 -17

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import pathlib,json,html,re
root=pathlib.Path(__file__).resolve().parents[1]
for name in ['browser','mobile']:
file=root/f'docs/{name}-check-output.html'
source=file.read_text(encoding='utf-8-sig')
text=html.unescape(re.search(r'<pre id="result">(.*?)</pre>',source,re.S).group(1))
result=json.loads(text)
(root/f'docs/{name}-check-result.json').write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')
print(name,result.get('status',result.get('pass')),len(result.get('checks',[])))