summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-15 08:58:14 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-08-01 21:44:33 +0530
commit18e9a934cec57fa756086b0d789adb6b83fcee34 (patch)
treed02041691b50c1de761704e2fb32a834cab0869d
parent5d07e38342f6a65cec3e661447d539b71401b49b (diff)
downloadlibhubbub-18e9a934cec57fa756086b0d789adb6b83fcee34.tar.gz
libhubbub-18e9a934cec57fa756086b0d789adb6b83fcee34.tar.bz2
tiny fix in tester & enabling some tests
-rw-r--r--test/data/tree-construction/INDEX6
-rw-r--r--test/tree2.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/data/tree-construction/INDEX b/test/data/tree-construction/INDEX
index c249b98..fade2d6 100644
--- a/test/data/tree-construction/INDEX
+++ b/test/data/tree-construction/INDEX
@@ -12,12 +12,12 @@ comments01.dat html5lib treebuilder tests
#domjs-unsafe.dat NA
entities01.dat html5lib tests for special characters
entities02.dat html5lib tests for special characters
-#html5test-com.dat NA
+html5test-com.dat html5lib treebuilder tests
inbody01.dat html5lib Insertion Mode specific tests
isindex.dat html5lib treebuilder tests for isindex element
-#main-element.dat NA
+main-element.dat html5lib tests
pending-spec-changes.dat html5lib treebuilder tests
-#pending-spec-changes-plain-text-unsafe.dat NA
+pending-spec-changes-plain-text-unsafe.dat html5lib tests for special characters
#plain-text-unsafe.dat NA
README.md html5lib treebuilder tests
regression.dat html5lib treebuilder tests
diff --git a/test/tree2.c b/test/tree2.c
index d5d4c72..15e9901 100644
--- a/test/tree2.c
+++ b/test/tree2.c
@@ -251,7 +251,7 @@ int main(int argc, char **argv)
assert(hubbub_parser_completed(parser) == HUBBUB_OK);
state = READING_ERRORS;
} else {
- size_t len = strlen(line);
+ size_t len = parse_strlen(line,sizeof line);
if (state == READING_DATA_AFTER_FIRST) {
assert(hubbub_parser_parse_chunk(parser,