Add pagination info service

Change-Id: I462f05581256575e9b52f474515cb8cb5e533d3b
diff --git a/t/query.t b/t/query.t
index 1dc3d92..b82d769 100644
--- a/t/query.t
+++ b/t/query.t
@@ -75,6 +75,9 @@
   ->text_is('li:nth-of-type(1) p.ref time[datetime=1982]', 1982)
   ->text_is('li:nth-of-type(1) p.ref span.sigle', '[GOE/AGI/00000]')
   ->header_isnt('X-Kalamar-Cache', 'true')
+  ->attr_is('#pagination','data-page','1')
+  ->attr_is('#pagination','data-total','3')
+  ->attr_is('#pagination','data-count','25')
   ->tx->res->dom->at('#error')
   ;
 is(defined $err ? $err->text : '', '');
@@ -170,6 +173,11 @@
 
   # Not searched for "der" before
   ->content_unlike(qr!${q}cutOff${q}:true!)
+
+  ->attr_is('#pagination','data-page','1')
+  ->attr_is('#pagination','data-total','7291')
+  ->attr_is('#pagination','data-count','2')
+
   ->tx->res->dom->at('#error')
   ;
 is(defined $err ? $err->text : '', '');
@@ -197,6 +205,10 @@
   ->content_like(qr!${q}itemsPerPage${q}:2!)
   ->content_like(qr!${q}startIndex${q}:2!)
 
+  ->attr_is('#pagination','data-page','2')
+  ->attr_is('#pagination','data-total','7291')
+  ->attr_is('#pagination','data-count','2')
+
   # No caching
   ->header_isnt('X-Kalamar-Cache', 'true')
   ->content_like(qr!${q}cutOff${q}:true!)