Monaco Diff Viewer POC-4: Comprehensive (File Loading + Theme Sync)
This page validates the production-ready component combining file loading and theme synchronization.
Test Case 1: File Loading with Theme Sync
Expected: Diff renders with markdown files, theme matches VitePress toggle
Test Instructions:
- Verify diff renders with content from both files
- Click VitePress theme toggle (top right)
- Verify Monaco theme updates immediately
Test Case 2: Props-Based Content with Theme Sync
Expected: Diff renders with inline content, theme switches work
Test Instructions:
- Verify diff renders with JavaScript syntax highlighting
- Toggle theme multiple times
- Verify no console errors
Test Case 3: Missing File Error
Expected: Error message displayed, theme toggle still works
Test Case 4: Invalid Prop Combination Error
Expected: Error message displayed
Test Case 5: Multi-Language Syntax Highlighting (POC-6)
Expected: Dropdown selector loads all 8 languages with syntax highlighting
Current: TypeScript
Test Instructions:
- Select each language from dropdown
- Verify syntax highlighting differs between languages
- Verify diff highlighting (green/red) visible
- Toggle VitePress theme to verify consistency
- Check console for errors