aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_spans.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index 791f1a6..d3e62ae 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -1,4 +1,3 @@
-#![cfg(feature = "integration-tests")] // TODO: switch to NaiveParser API
use std::ops::Range;
use codespan_reporting::{
@@ -7,16 +6,12 @@ use codespan_reporting::{
files::SimpleFiles,
term::{self, termcolor::Buffer},
};
-use html5tokenizer::{offset::PosTrackingReader, DefaultEmitter, Token, Tokenizer};
+use html5tokenizer::{offset::PosTrackingReader, NaiveParser, Token};
use insta::assert_snapshot;
use similar_asserts::assert_eq;
fn tokenizer(html: &'static str) -> impl Iterator<Item = Token<usize>> {
- Tokenizer::new(
- PosTrackingReader::new(html),
- DefaultEmitter::<usize>::default(),
- )
- .flatten()
+ NaiveParser::new(PosTrackingReader::new(html)).flatten()
}
fn annotate(html: &str, labels: Vec<(Range<usize>, impl AsRef<str>)>) -> String {