diff --git a/src/main/xsl/index.xsl b/src/main/xsl/index.xsl
index 2c94128..06c9dcc 100644
--- a/src/main/xsl/index.xsl
+++ b/src/main/xsl/index.xsl
@@ -73,9 +73,11 @@
In the mean time, please, don't abuse the system, keep your traffic to a reasonable limit.
- There are
-
- domains registered now:
+
+ There are
+
+ domains registered now (yours will be in this list too):
+
@@ -86,17 +88,29 @@
-
+
+
-
- by
-
+
@
-
+
+ :
+
+
+
+ ,
+
+
+
diff --git a/src/test/java/io/jare/tk/TkIndexTest.java b/src/test/java/io/jare/tk/TkIndexTest.java
index 038629d..22e4bd0 100644
--- a/src/test/java/io/jare/tk/TkIndexTest.java
+++ b/src/test/java/io/jare/tk/TkIndexTest.java
@@ -36,6 +36,7 @@
* @author Yegor Bugayenko (yegor@teamed.io)
* @version $Id$
* @since 1.0
+ * @checkstyle MultipleStringLiteralsCheck (500 lines)
*/
public final class TkIndexTest {
@@ -64,7 +65,28 @@ public void rendersHomePage() throws Exception {
"/page/version",
"/page/links/link[@rel='home']",
"/page/links/link[@rel='self']",
- "/page/links/link[@rel='takes:logout']"
+ "/page/links/link[@rel='takes:logout']",
+ "/page/domains/domain[name and owner]"
+ )
+ );
+ }
+
+ /**
+ * TkIndex can render home page in HTML.
+ * @throws Exception If some problem inside
+ */
+ @Test
+ public void rendersHomePageInHtml() throws Exception {
+ final Take take = new TkAppAuth(new TkIndex(new FkBase()));
+ MatcherAssert.assertThat(
+ XhtmlMatchers.xhtml(
+ new RsPrint(
+ take.act(new RqFake("GET", "/"))
+ ).printBody()
+ ),
+ XhtmlMatchers.hasXPaths(
+ "/xhtml:html",
+ "/xhtml:html/xhtml:body"
)
);
}