You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by be...@apache.org on 2014/02/13 17:06:00 UTC
[05/50] mochiweb commit: updated refs/heads/import-upstream to 8eb1f22
failing test for #110
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/13f93166
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/13f93166
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/13f93166
Branch: refs/heads/import-upstream
Commit: 13f931660638432c79b4fbcaced500e9e7ab03c0
Parents: f540b15
Author: Bob Ippolito <bo...@redivi.com>
Authored: Mon May 6 15:05:32 2013 -0700
Committer: Bob Ippolito <bo...@redivi.com>
Committed: Mon May 6 15:05:32 2013 -0700
----------------------------------------------------------------------
test/mochiweb_html_tests.erl | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/13f93166/test/mochiweb_html_tests.erl
----------------------------------------------------------------------
diff --git a/test/mochiweb_html_tests.erl b/test/mochiweb_html_tests.erl
index cf97fc4..c9fec6f 100644
--- a/test/mochiweb_html_tests.erl
+++ b/test/mochiweb_html_tests.erl
@@ -570,3 +570,11 @@ parse_unescaped_lt_test() ->
{<<"div">>, [], [<<" << ">>, {<<"a">>, [{<<"href">>, <<"/">>}],
[<<"Back">>]}]},
mochiweb_html:parse(D2)).
+
+implicit_html_test() ->
+ %% https://github.com/mochi/mochiweb/issues/110
+ ?assertEqual(
+ {<<"html">>, [],
+ [{<<"head">>, [], []},
+ {<<"body">>, [], []}]},
+ mochiweb_html:parse("<!doctype html><head></head><body></body>")).