tests/test-hgwebdir.t
changeset 28268 3643b66d7f71
parent 27184 64187e9a5659
child 29439 c42a3fd5c1fc
--- a/tests/test-hgwebdir.t	Fri Feb 26 19:13:10 2016 +0000
+++ b/tests/test-hgwebdir.t	Sat Feb 27 19:53:18 2016 +0800
@@ -100,6 +100,23 @@
   /a/
   /b/
   
+  $ get-with-headers.py localhost:$HGPORT '?style=json'
+  200 Script output follows
+  
+  {
+  "entries": [{
+  "name": "a",
+  "description": "unknown",
+  "contact": "Foo Bar \u003cfoo.bar@example.com\u003e",
+  "lastchange": [*, *] (glob)
+  }, {
+  "name": "b",
+  "description": "unknown",
+  "contact": "Foo Bar \u003cfoo.bar@example.com\u003e",
+  "lastchange": [*, *] (glob)
+  }]
+  } (no-eol)
+
   $ get-with-headers.py localhost:$HGPORT 'a/file/tip/a?style=raw'
   200 Script output follows