aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 17:09:08 +0100
committerMartin Fischer <martin@push-f.com>2021-12-05 02:52:36 +0100
commit1f99ea9e16f85945e2606905ed6345519ce16e4e (patch)
treee2c689ac735f08c8d683d84be0292f1e20d7051a /tests
parent91c0008023746a9ffdd01b9b87f89a2ef4ebb01e (diff)
spans: make Emitter generic over Span
Diffstat (limited to 'tests')
-rw-r--r--tests/test_html5lib.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/test_html5lib.rs b/tests/test_html5lib.rs
index cb11a00..5668217 100644
--- a/tests/test_html5lib.rs
+++ b/tests/test_html5lib.rs
@@ -10,7 +10,7 @@ compile_error!(
"integration tests need the integration-tests feature enabled. Run cargo test --all-features"
);
-struct ExpectedOutputTokens(Vec<Token>);
+struct ExpectedOutputTokens(Vec<Token<()>>);
impl<'de> Deserialize<'de> for ExpectedOutputTokens {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
@@ -80,19 +80,24 @@ impl<'de> Deserialize<'de> for ExpectedOutputTokens {
self_closing: false,
name,
attributes,
+ name_span: (),
}),
OutputToken::StartTag2(_, name, attributes, self_closing) => {
Token::StartTag(StartTag {
self_closing,
name,
attributes,
+ name_span: (),
})
}
- OutputToken::EndTag(_, name) => Token::EndTag(EndTag { name }),
+ OutputToken::EndTag(_, name) => Token::EndTag(EndTag {
+ name,
+ name_span: (),
+ }),
OutputToken::Comment(_, data) => Token::Comment(data),
OutputToken::Character(_, data) => Token::String(data),
})
- .collect::<Vec<Token>>(),
+ .collect::<Vec<Token<()>>>(),
))
}
}