# Code editor and structured text editor

**Test family:** `CDE`

- **CDE-001** Empty/ordinary/large/long-line/many-line/Unicode/RTL/tab/mixed-newline content round-trips exactly.
- **CDE-002** Syntax language, highlighting, line numbers, indentation, wrapping, bracket/quote behavior, and formatter match chosen mode.
- **CDE-003** Selection, multi-cursor, find/replace, undo/redo, copy/paste, IME, and browser shortcuts do not conflict.
- **CDE-004** Diagnostics map to correct line/column after edits and distinguish parser/linter/runtime errors.
- **CDE-005** Autosave/manual save/concurrent edit/offline/restore preserves versions and exact bytes.
- **CDE-006** Running/previewing code requires explicit authority and sandbox/resource/network/file boundaries; editor text remains inert otherwise.
- **CDE-007** Screen-reader mode, keyboard-only operation, high contrast, and large file fallback remain usable.
- **CDE-008** Secret detection/redaction prevents accidental logs, share links, AI context, and public snippets.

## Comprehensive per-item coverage

- **CDE-009** Exercise unavailable, permission-denied, idle, initializing, active, paused, completed, canceled, failed, and recovered states.
- **CDE-010** Use adjacent names, captions, metadata, or pasted text containing ASCII emoticons, emoji/ZWJ sequences, kaomoji, RTL, combining marks, and long values.
- **CDE-011** Start through pointer, keyboard, touch, switch, voice, automation, and supported device controls; expose equivalent state and one action.
- **CDE-012** Deny, grant, revoke, and change OS/browser permission while idle and active; explain consequences and stop access promptly.
- **CDE-013** Disconnect, reconnect, sleep/wake, background/foreground, rotate, resize, switch devices, and change network quality during use.
- **CDE-014** Force unsupported format, codec, capability, device, browser, version, and hardware acceleration; fall back truthfully.
- **CDE-015** Use empty, tiny, ordinary, boundary-size, malformed, truncated, corrupt, and adversarial inputs without crash or unbounded work.
- **CDE-016** Use inert markup, script, URL, path, filename, metadata, template, and structured-payload canaries; isolate untrusted content.
- **CDE-017** Attempt cross-origin, cross-tenant, unauthorized, sandbox escape, clipboard, device, and local-resource access; enforce least privilege.
- **CDE-018** Double-start, double-stop, repeat, retry after timeout, and race two sessions or devices; prevent duplicate work and state confusion.
- **CDE-019** Navigate away, refresh, crash, restore, expire the session, and resume offline/online; define preservation, cleanup, and recovery.
- **CDE-020** Verify keyboard path, accessible role/name/state, focus, announcements, captions/alternatives, contrast, reflow, target size, and reduced motion.
- **CDE-021** Test locale, RTL, translated/long labels, input methods, regional formats, and unsupported glyphs without corrupting data.
- **CDE-022** Measure initialization, interaction, processing, rendering, memory, CPU/GPU, battery, bandwidth, and cleanup at normal and boundary load.
- **CDE-023** Inspect DOM, device buffers, temporary files, caches, URLs, logs, telemetry, crash reports, previews, and exports for sensitive leakage.
- **CDE-024** Stop, cancel, undo, clear, delete, and revoke; release devices, handles, workers, object URLs, temporary data, and permissions.
- **CDE-025** Change access or ownership after content is loaded or a capability is granted; reauthorize before save, share, export, or commit.
- **CDE-026** Verify telemetry and audit identify capability, actor, target, permission decision, duration, failure, retry, and cleanup without recording sensitive payload.
- **CDE-027** Test concurrent components competing for the same device, shortcut, clipboard, focus, storage, worker, or media resource.
- **CDE-028** Recover from renderer, worker, process, device, storage, and network failure without false success, orphaned capture, or unrecoverable data loss.

[Back to Specialized controls and system surfaces index](../../specialized-controls.md)
