From 5f9196658d9403f663094afa5022c060e203e0dc Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Tue, 29 Oct 2024 20:25:20 +0100 Subject: [PATCH] fix parsing bug in treebuilder testsuite, add crash --- .../custom-html5lib-tests/{ => tokenizer}/custom.test | 0 .../{ => tokenizer}/error-order-bytes.test | 0 .../tree-construction/custom.dat | 11 +++++++++++ tests/html5lib_tokenizer.rs | 2 +- tests/html5lib_tree_builder.rs | 10 +++++++++- 5 files changed, 21 insertions(+), 2 deletions(-) rename tests/custom-html5lib-tests/{ => tokenizer}/custom.test (100%) rename tests/custom-html5lib-tests/{ => tokenizer}/error-order-bytes.test (100%) create mode 100644 tests/custom-html5lib-tests/tree-construction/custom.dat diff --git a/tests/custom-html5lib-tests/custom.test b/tests/custom-html5lib-tests/tokenizer/custom.test similarity index 100% rename from tests/custom-html5lib-tests/custom.test rename to tests/custom-html5lib-tests/tokenizer/custom.test diff --git a/tests/custom-html5lib-tests/error-order-bytes.test b/tests/custom-html5lib-tests/tokenizer/error-order-bytes.test similarity index 100% rename from tests/custom-html5lib-tests/error-order-bytes.test rename to tests/custom-html5lib-tests/tokenizer/error-order-bytes.test diff --git a/tests/custom-html5lib-tests/tree-construction/custom.dat b/tests/custom-html5lib-tests/tree-construction/custom.dat new file mode 100644 index 0000000..1450e22 --- /dev/null +++ b/tests/custom-html5lib-tests/tree-construction/custom.dat @@ -0,0 +1,11 @@ +#data + +#errors +#document +| +| +| +|