Open Bug 1998189 Opened 1 year ago Updated 8 months ago

Add tests for block subdivision behavior in PageExtractor

Categories

(Core :: Machine Learning: On Device, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: gregtatum, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

When I landed the initial code, I had some small tests to ensure things are working. We should create a more extensive test suite to ensure we always get high quality results.

Component: Machine Learning: General → Machine Learning: On Device
Whiteboard: [genai]

We should test the way that blocks get subdivided, similarly to the TranslationsDocument. The algorithm operates on subdividing into display blocks. This is an important behavior.

https://searchfox.org/firefox-main/rev/a1993f4ba4da86b261dc2f9a883fb9b4ae655dee/toolkit/components/translations/tests/browser/browser_translations_translation_document.js#395-438

Summary: Ensure that we have really good unit tests for PageExtractor → Add tests for block subdivision behavior in PageExtractor

We've been adding tests as we go, so rather than closing this bug I'm going to make it just about the block subdivision tests.

You need to log in before you can comment on or make changes to this bug.