-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Following WPTs were failing on chrome and passing on content_shell and headless_shell. third_party\blink\web_tests\external\wpt\editing\other\ merge-span-with-style-after-backspace-having-contenteditable.html third_party\blink\web_tests\external\wpt\editing\other\ merge-span-with-style-after-forwarddelete-having-contenteditable.html third_party\blink\web_tests\external\wpt\editing\other\ merge-span-with-style-after-pressing-enter-followed-by- backspace-in-contenteditable-div.html These WPTs were failing in chrome but passing in content_shell and headless_shell. The WPTs were failing because it was using editor-test utils where we are placing the caret at time of setting up editing host. Somehow the caret placed moves to the end of the text node when we call the backspace key in chrome but works fine in content_shell and headless_shell. This leads to deletion of the last character in the textnode instead of the desired output. Hence, I have modified the test to use selection and range to place the caret which works fine in all shells. Bug: 398413722 Change-Id: Iff6f8438c6982084601d846cac496000e1edf912 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6295383 Commit-Queue: Pranav Modi <[email protected]> Reviewed-by: Sanket Joshi <[email protected]> Reviewed-by: Sambamurthy Bandaru <[email protected]> Cr-Commit-Position: refs/heads/main@{#1424384}
- Loading branch information
1 parent
46e8857
commit 570d512
Showing
3 changed files
with
78 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters