Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 19430:5ec5097b4c0f
hgweb: add line wrapping switch to file source view
This uses classList property, which is well-supported now: both Chromium 8.0+,
Firefox 3.6+ and Opera 11.5+ support it, as well as relatively modern versions
of other browsers.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Fri, 12 Jul 2013 15:58:13 +0400 |
parents | c3cdba6e5d7f |
children | b8ecc3830c89 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Tue Jul 09 02:08:24 2013 +0400 +++ b/tests/test-hgweb-commands.t Fri Jul 12 15:58:13 2013 +0400 @@ -667,8 +667,9 @@ </table> <div class="overflow"> + <div class="sourcefirst linewraptoggle">line wrap: <a class="linewraplink" href="javascript:toggleLinewrap()">on</a></div> <div class="sourcefirst"> line source</div> - <pre class="sourcelines"> + <pre class="sourcelines wrap"> <span id="l1">foo</span><a href="#l1"></a></pre> <div class="sourcelast"></div> </div>