Merge current dev and refresh PR #6741 from the 7011 integration

This commit is contained in:
pewdiepie-archdaemon
2026-10-26 16:21:28 +00:00
295 changed files with 24233 additions and 1587 deletions
+10
View File
@@ -57,6 +57,16 @@ def test_moves_share_pixels_but_keep_independent_offsets_and_changed_pixels():
assert run_node(script) == {"count": 20, "bytes": 400, "first": 0, "last": 19, "shared": True, "changed": True}
def test_moves_share_pixels_with_a_four_byte_comparison():
# The pixel comparison runs over every byte of every layer on each undo
# snapshot; comparing Uint32 words keeps pen/selection commits fast.
source = (ROOT / "static/js/editor/history-budget.js").read_text(encoding="utf-8")
assert "function samePixels(image, other) {" in source
assert "new Uint32Array(image.data.buffer, image.data.byteOffset, length >> 2)" in source
assert "new Uint32Array(other.data.buffer, other.data.byteOffset, length >> 2)" in source
assert "candidates.find(other => samePixels(image, other))" in source
def test_history_budget_counts_saved_selections_and_group_masks():
script = textwrap.dedent(
f"""