From: Jason Woofenden
Date: Thu, 17 Dec 2015 16:12:32 +0000 (-0500)
Subject: add some aaa tests from html5lib-tests
X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;ds=inline;h=68d38421142b0cb1f6b62047c79d24f35f34174d;p=peach-html5-editor.git
add some aaa tests from html5lib-tests
---
diff --git a/parse-html.coffee b/parse-html.coffee
index 08dd98f..6db8ab0 100644
--- a/parse-html.coffee
+++ b/parse-html.coffee
@@ -1203,3 +1203,24 @@ test_parser name: "crazy formatting elements test", \
# firefox does this:
expected: 'tag:"b",{},[tag:"i",{},[tag:"a",{},[tag:"s",{},[tag:"tt",{},[]]]]],tag:"a",{},[tag:"s",{},[tag:"tt",{},[tag:"div",{},[tag:"b",{},[],text:"first"]]]],text:"second"',
errors: 6 # no idea how many there should be
+# tests from https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/adoption01.dat
+test_parser name: "html5lib aaa 1", \
+ html: '