aboutsummaryrefslogtreecommitdiff
path: root/integration_tests/tests/test_html5lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'integration_tests/tests/test_html5lib.rs')
-rw-r--r--integration_tests/tests/test_html5lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs
index a682cb3..36fb880 100644
--- a/integration_tests/tests/test_html5lib.rs
+++ b/integration_tests/tests/test_html5lib.rs
@@ -6,7 +6,7 @@ use html5lib_tests::{
use html5tokenizer::{
offset::{Offset, Position},
reader::Reader,
- CdataAction, DefaultEmitter, Emitter, Error, Event, InternalState, Token, Tokenizer,
+ CdataAction, Emitter, Error, Event, InternalState, Token, Tokenizer, TracingEmitter,
};
use similar_asserts::assert_eq;
@@ -73,7 +73,7 @@ fn run_test(fname: &str, test_i: usize, test: Test) {
test_i,
&test,
state,
- Tokenizer::new(&test.input, DefaultEmitter::default()),
+ Tokenizer::new(&test.input, TracingEmitter::default()),
"string",
);
@@ -84,7 +84,7 @@ fn run_test(fname: &str, test_i: usize, test: Test) {
state,
Tokenizer::new(
BufReader::new(test.input.as_bytes()),
- DefaultEmitter::default(),
+ TracingEmitter::default(),
),
"bufread",
);
@@ -181,7 +181,7 @@ trait DrainErrors<O> {
fn drain_errors(&mut self) -> Box<dyn Iterator<Item = (Error, Range<O>)> + '_>;
}
-impl<O> DrainErrors<O> for DefaultEmitter<O> {
+impl<O> DrainErrors<O> for TracingEmitter<O> {
fn drain_errors(&mut self) -> Box<dyn Iterator<Item = (Error, Range<O>)> + '_> {
Box::new(self.drain_errors())
}