Skip to content

Commit

Permalink
[iOS] editing/selection/ios/change-selection-by-tapping-with-existing…
Browse files Browse the repository at this point in the history
…-selection.html fails

https://bugs.webkit.org/show_bug.cgi?id=259619

Reviewed by Wenson Hsieh.

This test fails on iOS because the test was expecting the selection end points to be canonicalized.
Use canonicalized positions so that the output matches the expectation.

* LayoutTests/editing/selection/ios/change-selection-by-tapping-with-existing-selection.html:

Canonical link: https://commits.webkit.org/266413@main
  • Loading branch information
rniwa committed Jul 29, 2023
1 parent e203944 commit 0f709ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
description("Verifies that tapping to change selection works when we already have a selection in the same editable root but do not currently have a focused node in the UIKit sense.");

var target = document.getElementById("target");
window.getSelection().setBaseAndExtent(target, 0, target, 1);
window.getSelection().setBaseAndExtent(target.firstChild, 0, target.firstChild, 2);

document.querySelector("#selection-before").textContent = selectionToString();
await tapAndWaitForSelectionChange(5, 5);
Expand Down

0 comments on commit 0f709ca

Please sign in to comment.