Closed Bug 1581199 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 19049 - Implement word boundary matching

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox71 fixed)

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 19049 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19049
Details from upstream follow.

Nick Burris <nburris@chromium.org> wrote:

Implement word boundary matching

Ensure a match is bounded by word boundaries. This implementation uses a
similar approach to providing FindOptions::kWholeWord to
FindBuffer::FindMatchInRange, however that option requires the search
text to be a single word.

Added tests and a web platform test case.

Bug: 924965
Change-Id: Iaa6785181eb29f0d25f64026c3be05d095ace3ad
Reviewed-on: https://chromium-review.googlesource.com/1803723
WPT-Export-Revision: 2e4ff89599af58915d1799f2d31550474a92fa36

PR 19049 applied with additional changes from upstream: 603a271948a7162bc6efc3c882856e618eabb30e, 3f0fe8a6dfbc92f85777bbc8649602007f0b8429
Ran 1 tests and 15 subtests
OK     : 1
PASS   : 4
FAIL   : 11

New tests that have failures or other problems:
/scroll-to-text-fragment/scroll-to-text-fragment.html
    Scroll to text is feature detectable via window.location.selector: FAIL
    Test navigation with text fragment anchor #element##directive: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f2d91546ce80
[wpt PR 19049] - Implement word boundary matching, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.