Commit bafd1ce
committed
fix(test): align context menu tests with current paste and cursor behavior
- ContextMenu: test now expects moveCursorToMouseEvent NOT to be called
when right-clicking outside a range selection (code preserves range
selection to avoid presentation mode hit-testing issues)
- menuItems paste: test reflects that text branch prefers pasteText over
pasteHTML and passes empty html to handleClipboardPaste for URL detection
- menuItems fallback: test reflects that no insertContent fallback exists
when pasteText is unavailable in the text branch1 parent 3a9a980 commit bafd1ce
2 files changed
Lines changed: 26 additions & 7 deletions
File tree
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
| |||
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
316 | | - | |
| 319 | + | |
317 | 320 | | |
318 | 321 | | |
319 | 322 | | |
| |||
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
571 | 574 | | |
572 | 575 | | |
573 | 576 | | |
574 | 577 | | |
575 | 578 | | |
| 579 | + | |
576 | 580 | | |
577 | 581 | | |
578 | 582 | | |
| |||
593 | 597 | | |
594 | 598 | | |
595 | 599 | | |
| 600 | + | |
596 | 601 | | |
597 | 602 | | |
598 | | - | |
| 603 | + | |
599 | 604 | | |
600 | 605 | | |
601 | | - | |
| 606 | + | |
| 607 | + | |
602 | 608 | | |
603 | 609 | | |
604 | 610 | | |
| |||
631 | 637 | | |
632 | 638 | | |
633 | 639 | | |
634 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
635 | 644 | | |
636 | 645 | | |
637 | 646 | | |
638 | 647 | | |
| 648 | + | |
639 | 649 | | |
640 | 650 | | |
641 | 651 | | |
| |||
657 | 667 | | |
658 | 668 | | |
659 | 669 | | |
660 | | - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
661 | 677 | | |
662 | 678 | | |
663 | 679 | | |
| |||
0 commit comments