sphinx/tests/js
James Addison 47757c4062
HTML search: Ensure that `checkRanking` fails when the final entry is not found (#12608)
The ``checkRanking`` function in our test suite has a bug; it's currently possible for the final item in the expected ranking list *not* to be found in the result-set, and yet for the function to pass.

**Expected Behaviour**
The ``checkRanking`` function should confirm that all of the items specified in the ``expectedRanking`` argument appear within the ``results`` argument, and in the list-iteration-order provided.  If they do not, then an assertion error should be raised, failing the test.

**Actual Behaviour**
If all items up until the final entry in the ``expectedRanking`` argument are found in the expected order, but the final entry itself is not found at all in the ``results``, then no assertion error is raised, and the test passes.
2024-07-17 16:29:55 +01:00
..
fixtures Increment the environment version to resolve C domain issues on incremental rebuilds (#12583) 2024-07-15 12:00:18 +01:00
roots Improve relevance scoring in HTML search results (#12441) 2024-07-11 11:55:40 +01:00
documentation_options.js Split out sphinx_highlight.js 2022-09-24 15:10:57 +01:00
language_data.js [tests] JavaScript: refactor test fixtures (#12102) 2024-06-13 13:07:46 +02:00
searchtools.js HTML search: Ensure that `checkRanking` fails when the final entry is not found (#12608) 2024-07-17 16:29:55 +01:00
sphinx_highlight.js Split out sphinx_highlight.js 2022-09-24 15:10:57 +01:00