aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 15:34:57 +0100
committerMartin Fischer <martin@push-f.com>2021-12-05 02:39:51 +0100
commit4892172b629590ac4362f7506c14e993fd1ddd2b (patch)
treed121890b5e2fbd13289dca5c83ccda5a41d77fbf /tests
parent710de8ae37c1199ce65430ceed00cbc1ed61d81a (diff)
prepare for introduction of public State enum
Diffstat (limited to 'tests')
-rw-r--r--tests/test_html5lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_html5lib.rs b/tests/test_html5lib.rs
index 652a72d..cb11a00 100644
--- a/tests/test_html5lib.rs
+++ b/tests/test_html5lib.rs
@@ -1,4 +1,6 @@
-use html5gum::{Doctype, EndTag, Error, Reader, StartTag, State, Token, Tokenizer};
+use html5gum::{
+ Doctype, EndTag, Error, InternalState as State, Reader, StartTag, Token, Tokenizer,
+};
use pretty_assertions::assert_eq;
use serde::{de::Error as _, Deserialize};
use std::{collections::BTreeMap, fs::File, io::BufReader, path::Path};
@@ -258,7 +260,7 @@ fn run_test_inner<R: Reader>(
fname, test_i, state, tokenizer_info,
);
println!("description: {}", test.description);
- tokenizer.set_state(state);
+ tokenizer.set_internal_state(state);
tokenizer.set_last_start_tag(test.last_start_tag.as_ref().map(String::as_str));
let mut actual_tokens = Vec::new();