Mercurial > hg
diff tests/test-hgweb-symrev.t @ 35529:5afe0ca59b07
paper: make actual changeset entries have backgrounds on /graph
This patch removes a separate container for backgrounds only and puts
backgrounds on changeset elements themselves. This makes it so that JS code
doesn't need to create background elements separately anymore.
There's a bit of manipulating positions of elements: every changeset entry has
a "fg" element that gets a higher z-index than <canvas> element. This
prioritizes text information, so that even if it somehow gets close to the
graph drawn on <canvas> (which has z-index of 5), it'll still be on top of it.
This can happen if commit message has a long first line and browser window is
narrow, for example.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 05 Jan 2018 18:46:06 +0800 |
parents | 66c11a66ad1a |
children | acd8a2454b47 |
line wrap: on
line diff
--- a/tests/test-hgweb-symrev.t Thu Jan 04 12:34:40 2018 +0100 +++ b/tests/test-hgweb-symrev.t Fri Jan 05 18:46:06 2018 +0800 @@ -59,9 +59,9 @@ <a href="/graph/tip?revcount=30&style=paper">less</a> <a href="/graph/tip?revcount=120&style=paper">more</a> | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> - <a href="/rev/9d8c40cba617?style=paper">third</a> - <a href="/rev/a7c1559b7bba?style=paper">second</a> - <a href="/rev/43c799df6e75?style=paper">first</a> + <a href="/rev/9d8c40cba617?style=paper">third</a> + <a href="/rev/a7c1559b7bba?style=paper">second</a> + <a href="/rev/43c799df6e75?style=paper">first</a> <a href="/graph/tip?revcount=30&style=paper">less</a> <a href="/graph/tip?revcount=120&style=paper">more</a> | rev 2: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> @@ -126,8 +126,8 @@ <a href="/graph/xyzzy?revcount=30&style=paper">less</a> <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> - <a href="/rev/a7c1559b7bba?style=paper">second</a> - <a href="/rev/43c799df6e75?style=paper">first</a> + <a href="/rev/a7c1559b7bba?style=paper">second</a> + <a href="/rev/43c799df6e75?style=paper">first</a> <a href="/graph/xyzzy?revcount=30&style=paper">less</a> <a href="/graph/xyzzy?revcount=120&style=paper">more</a> | rev 1: <a href="/graph/43c799df6e75?style=paper">(0)</a> <a href="/graph/tip?style=paper">tip</a> @@ -259,9 +259,9 @@ <a href="/graph/tip?revcount=30&style=coal">less</a> <a href="/graph/tip?revcount=120&style=coal">more</a> | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> - <a href="/rev/9d8c40cba617?style=coal">third</a> - <a href="/rev/a7c1559b7bba?style=coal">second</a> - <a href="/rev/43c799df6e75?style=coal">first</a> + <a href="/rev/9d8c40cba617?style=coal">third</a> + <a href="/rev/a7c1559b7bba?style=coal">second</a> + <a href="/rev/43c799df6e75?style=coal">first</a> <a href="/graph/tip?revcount=30&style=coal">less</a> <a href="/graph/tip?revcount=120&style=coal">more</a> | rev 2: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> @@ -326,8 +326,8 @@ <a href="/graph/xyzzy?revcount=30&style=coal">less</a> <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a> - <a href="/rev/a7c1559b7bba?style=coal">second</a> - <a href="/rev/43c799df6e75?style=coal">first</a> + <a href="/rev/a7c1559b7bba?style=coal">second</a> + <a href="/rev/43c799df6e75?style=coal">first</a> <a href="/graph/xyzzy?revcount=30&style=coal">less</a> <a href="/graph/xyzzy?revcount=120&style=coal">more</a> | rev 1: <a href="/graph/43c799df6e75?style=coal">(0)</a> <a href="/graph/tip?style=coal">tip</a>