aboutsummaryrefslogtreecommitdiff
path: root/integration_tests/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-12 08:19:00 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 10:36:08 +0200
commitad6ac5f0a825775c231e76cdc9016e61e54f4141 (patch)
tree7e18bad94e0b1fbccef9c968f0c94cb49fa6e048 /integration_tests/tests
parentab373b495c8ed659e64158b764206dd2eaa35336 (diff)
break!: rename DefaultEmitter to TracingEmitter
Diffstat (limited to 'integration_tests/tests')
-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())
}