Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 3.75 KB

File metadata and controls

50 lines (41 loc) · 3.75 KB

M3.2 — 10-Format Manual Test Corpus

This is the manual test you run with pnpm tauri dev open before declaring M3.2 done. Each row exercises a real user flow; capture and paste both must work for the row to count.

Setup: open Notepad as a paste target, plus one app per row's "source" column. Copy from source → check the popup → paste into Notepad (or the appropriate target).

# Format Source app Capture check Paste check
1 Plain text Notepad Row appears, kind=text, preview = first 80 chars Notepad receives the text on Enter
2 Multiline text VSCode (3-line snippet) Row preview = first line Paste preserves all newlines
3 URL Browser address bar (Ctrl+L → C) Source app = browser exe Paste = full URL
4 Türkçe characters Notepad ("ışık öğretmen ığdır") FTS5 search finds it via dunya-style strip Paste matches byte-for-byte
5 RTF WordPad / Word ("bold text") kind=rtf, preview shows readable text Paste into WordPad keeps bold; into Notepad shows plain text
6 HTML Browser selection (e.g. an <h1>) kind=html, header (Version:0.9...) included Paste into Word keeps formatting; Notepad shows plain text
7 PNG screenshot Win+Shift+S kind=image, thumbnail visible in popup Paste into Paint / Word inserts image
8 JPEG image Browser → "Copy image" kind=image, re-encoded as PNG (size differs) Paste into Paint inserts image
9 Single file Explorer → Ctrl+C on file kind=file, preview shows filename Paste into Explorer copies the file there; into Outlook attaches
10 Multi-file Explorer → Ctrl+C on 3+ files kind=file, preview shows "name.ext (+2 more)" Paste into Explorer copies all 3 files

Edge cases (run after the 10 above pass)

  • Sensitive content over RTF: paste an AWS key into a Word doc, copy selection. Expect: kind=rtf, sensitive=1, red border. Pasting into Notepad re-pastes the AWS key (warning shown if sensitive paste UX from M5.x is in).
  • Image > 50 MB: rare but possible (large screenshot). Expect: drop with toast Image >50MB skipped, no row inserted.
  • File path with spaces / Türkçe chars (C:\Yedek\dökümanlar\rapor.pdf): kind=file, paste into Explorer round-trips correctly.
  • Empty clipboard after Ctrl+C of a single space: no row inserted (the watcher early-returns on empty payloads).
  • Self-paste loop: paste row #5 (RTF). Watcher captures our own RTF write → DB shows "bumped existing clip" path, no duplicate row.

Performance gates (informal — formal benchmark in M7)

  • 10-row test corpus end-to-end (capture + paste): wall-clock < 2 minutes.
  • Image clip insert (4 MB PNG): < 200 ms p95 from WM_CLIPBOARDUPDATE to "captured new clip" log.
  • Thumbnail visible in popup: < 500 ms after image insert.
  • Image paste round-trip: < 250 ms from Enter to Paint receiving the bitmap.

Sign-off

When all 10 rows + the edge cases pass on the developer's machine, mark M3.2 ✅ in CHANGELOG.md and proceed to M5.x mini-polish.