diff tests/test-hgweb-empty.t @ 20253:43cfad930d38

hgweb: avoid invalid infinity scroll request when overwritten web.style Infinity scroll is broken when you override the web.style in the following ways: $ hg --config='web.style=gitweb' serve $ open http://localhost:8080/shortlog?style=paper ajaxScrollInit should use http://localhost:8080/shortlog/%next%?style=paper. however, http://localhost:8080/shortlog/%next% is used actually. It is missing style parameter. This patch add style parameter to request url.
author Takumi IINO <trot.thunder@gmail.com>
date Wed, 08 Jan 2014 00:35:03 +0900
parents 544848ef65f2
children 7a9cbb315d84
line wrap: on
line diff
--- a/tests/test-hgweb-empty.t	Wed Jan 08 00:26:55 2014 +0900
+++ b/tests/test-hgweb-empty.t	Wed Jan 08 00:35:03 2014 +0900
@@ -361,7 +361,7 @@
   
   <script type="text/javascript">
       ajaxScrollInit(
-              '/graph/-1?revcount=%next%',
+              '/graph/-1?revcount=%next%&style=paper',
               60+60,
               function (htmlText, previousVal) { return previousVal + 60; },
               '#wrapper',