feat: add built-in array comparison

This commit is contained in:
Codex
2026-08-28 12:19:42 +09:00
parent d04a4d9f65
commit 2ce96064cf
7 changed files with 1670 additions and 1 deletions
+14
View File
@@ -124,6 +124,17 @@ test("Acoustic Camera가 8×8 CPU 실행·결과 저장·stale·재실행 흐름
!documentObject.querySelector("#run-button").disabled,
"original comparison configuration restore",
);
dispatchValue(
windowObject,
documentObject.querySelector("#array-preset"),
"fermat-spiral-192",
);
await waitFor(
() => documentObject.querySelector("#array-title").textContent.includes("Fermat") &&
documentObject.documentElement.dataset.cameraValid === "true" &&
!documentObject.querySelector("#run-button").disabled,
"Fermat comparison array",
);
documentObject.querySelector("#run-button").click();
await waitFor(
@@ -138,6 +149,9 @@ test("Acoustic Camera가 8×8 CPU 실행·결과 저장·stale·재실행 흐름
);
assert(!documentObject.querySelector("#result-badge").textContent.includes("이전 설정"), "fresh result badge");
assertEqual(documentObject.querySelectorAll("#history-list .history-card").length, 2, "rerun history");
const historyText = documentObject.querySelector("#history-list").textContent;
assert(historyText.includes("rectangular baseline"), "baseline history retained");
assert(historyText.includes("Fermat spiral"), "comparison array history added");
} finally {
windowObject.HTMLAnchorElement.prototype.click = originalAnchorClick;
windowObject.URL.revokeObjectURL = originalRevoke;