From 963362e1ea20fe30e850fc81462f79fa5c698f2b Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sun, 15 May 2022 23:56:00 +0400 Subject: [PATCH] One more test-point for search result pagination --- test/server.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/test/server.cpp b/test/server.cpp index 74c0b8b70..72725a67b 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -2074,6 +2074,33 @@ R"SEARCHRESULT( } }, + { + /* pattern */ "jazz", + /* start */ 21, + /* resultsPerPage */ 3, + /* totalResultCount */ 44, + /* firstResultIndex */ 22, + /* results */ { + LARGE_SEARCH_RESULTS[21], + LARGE_SEARCH_RESULTS[22], + LARGE_SEARCH_RESULTS[23], + }, + + /* pagination */ { + { "◀", 0, false }, + { "4", 9, false }, + { "5", 12, false }, + { "6", 15, false }, + { "7", 18, false }, + { "8", 21, true }, + { "9", 24, false }, + { "10", 27, false }, + { "11", 30, false }, + { "12", 33, false }, + { "▶", 42, false }, + } + }, + // This test-point only documents how the current implementation // works, not how it should work! {