alonso.torres 48a627e042 🚧 Save component stabilization follow-up
Expand generated component coverage with independent library histories,
meaningful mutation counts, varied geometry and variants, all text style
units, oracle corruption controls and pending-sync frontend replays.

Fix reflected descendants, partial size carry, WASM shape defaults,
deferred swap and sidebar text undo, grid visibility, explicit typography
ownership, metadata filtering and swapped placement through sync/detach.

Recorded validation after F219:
- Common JVM: 1,909 tests / 31,088 assertions; JS: 1,840 / 29,688.
- Frontend: 1,560 tests / 10,821 assertions.
- Backend: 1,610 tests / 8,104 assertions; exporter: 14 / 32.
- Applicable lint and formatting pass; golden data stays unchanged.

Benchmark ratios against the unchanged Phase 1e baseline:
- Main edits into 10/100/1,000 copies: 0.52/0.57/0.58.
- Three levels: 0.51; dependency chain: 0.52; library update: 0.58.
- Many shapes: 0.42; variant switch: 0.62. No regression flags.

This is a checkpoint. The fresh legacy-library gate at seed 712 fails
at program 351 (F221); its cause remains unclassified. The other four
large gates did not run. F220, F187, F214 and wider coverage remain open.

AI-assisted-by: gpt-6
2026-11-10 20:21:33 +01:00

28 lines
1.0 KiB
Clojure

;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) KALEIDOS SUBSIDIARY SL
(ns frontend-tests.render-wasm.shape-proxy-test
(:require
[app.common.uuid :as uuid]
[app.render-wasm.shape :as wasm.shape]
[cljs.test :as t :include-macros true]))
(def ^:private attrs
"A shape with every base field, which the proxy always holds."
{:id (uuid/next) :type :rect :name "Rect" :x 10 :y 20 :width nil :height nil
:rotation nil :selrect nil :points nil :transform nil :transform-inverse nil
:parent-id nil :frame-id nil :flip-x nil :flip-y nil})
(t/deftest count-includes-id-and-type
(let [shape (wasm.shape/create-shape attrs)]
(t/is (= (count attrs) (count shape)))
(t/is (= (count shape) (count (seq shape))))))
(t/deftest equals-plain-map-with-same-entries
(let [shape (wasm.shape/create-shape attrs)]
(t/is (= shape attrs))
(t/is (= attrs shape))))