couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [05/50] mochiweb commit: updated refs/heads/import-upstream to 8eb1f22
Date Thu, 13 Feb 2014 16:06:00 GMT
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 <bob@redivi.com>
Authored: Mon May 6 15:05:32 2013 -0700
Committer: Bob Ippolito <bob@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>")).


Mime
View raw message