Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dump-as-markup.js in editing/selection/4983858.html #10402

Merged
merged 1 commit into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions LayoutTests/editing/selection/4983858-expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
| <html>
| <head>
| <body>
| contenteditable="true"
| "This tests for a bug where selecting a word would select the line break and word before it. Only the word in the paragraph below should be selected:"
| "\n"
| "\n"
| <div>
| "<#selection-focus>foo<#selection-anchor>"
| "\n"
5 changes: 3 additions & 2 deletions LayoutTests/editing/selection/4983858.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<body contenteditable="true"></body>

<script src="../../resources/dump-as-markup.js"></script>
<script>
var sel = window.getSelection();
sel.setPosition(document.body, 0);
document.execCommand("InsertText", false, "This tests for a bug where selecting a word would select the line break and word before it. Only the word in the paragraph below should be selected:");
document.execCommand("InsertText", false, "This tests for a bug where selecting a word would select the line break and word before it. Only the word in the paragraph below should be selected:");
document.execCommand("InsertParagraph");
document.execCommand("InsertText", false, "foo");
sel.modify("extend", "backward", "word");
document.querySelectorAll('script').forEach((script) => script.remove());
</script>
Binary file not shown.
17 changes: 0 additions & 17 deletions LayoutTests/platform/gtk/editing/selection/4983858-expected.txt

This file was deleted.

17 changes: 0 additions & 17 deletions LayoutTests/platform/ios/editing/selection/4983858-expected.txt

This file was deleted.

Binary file not shown.
17 changes: 0 additions & 17 deletions LayoutTests/platform/mac/editing/selection/4983858-expected.txt

This file was deleted.

This file was deleted.