Descriptionimplement validations of pagination URLs
This is the 2nd part of the new pagination algorithm implementation:
various validations of potential pagination URLs.
* PageParameterDetector:
- declares PagePattern interface that page pattern handlers must implement
- calls PagePattern methods to validate patterns and check for paging URL
- moves LinkInfo out to its own class PageLinkInfo, to avoid cross-access by
PageParamInfo
* QueryParamPagePattern
- handles page parameter in the query of potential pagination URLs
- implements PageParameterDetector.PagePattern interface
- add tests.
* PathComponentPagePattern
- handles page parameter in the path of potential pagination URLs
- implements PageParameterDetector.PagePattern interface
- add tests.
* PageParamInfo
- if possible, generates linear formula between text and page param of each
pagination anchor
- checks if page numbers of potential pagination URLs are adjacent and
consecutive, and if they form a page sequence.
- add tests.
BUG=464143
R=cjhopman@chromium.org
Committed: 10bc28cd4169e3b9532b5c253f620893c7650a67
Patch Set 1 #Patch Set 2 : rename test #
Total comments: 26
Patch Set 3 : addr chris's comments #Patch Set 4 : nit #
Total comments: 38
Patch Set 5 : addr all comments #Patch Set 6 : nit in comment #Patch Set 7 : copyright 2014 -> 2016 #Patch Set 8 : copyright 2016 -> 2015 #Patch Set 9 : copyright 2016 -> 2015 #
Total comments: 14
Patch Set 10 : addr all comments #
Total comments: 10
Patch Set 11 : addr chris's comments #Messages
Total messages: 17 (1 generated)
|