diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-01 12:53:29 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | f239037c1b960ba16c6c8b2184ac017c53c631bf (patch) | |
tree | 1b40c7151f5f9270b26ba2a15088f90dca175a43 /tests | |
parent | f588704c90f33fe27945d742762d016dea3e113c (diff) |
fix!: make start/end tag name spans encoding-independent
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_spans.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 8190f01..14d92b2 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -106,12 +106,12 @@ fn start_tag_name_span() { let mut labels = Vec::new(); for token in tokens { if let Token::StartTag(tag) = token { - labels.push((tag.name_span(), "")); + labels.push((tag.name_span, "")); } } labels }; - assert_panics_but_should_not(|| assert_char_encoding_independence(html, labeler)); // FIXME + assert_char_encoding_independence(html, labeler); assert_snapshot!(test_and_annotate(html, labeler), @r###" <x> <xyz> <xyz > <xyz/> ^ ^^^ ^^^ ^^^ @@ -125,12 +125,12 @@ fn end_tag_name_span() { let mut labels = Vec::new(); for token in tokens { if let Token::EndTag(tag) = token { - labels.push((tag.name_span(), "")); + labels.push((tag.name_span, "")); } } labels }; - assert_panics_but_should_not(|| assert_char_encoding_independence(html, labeler)); // FIXME + assert_char_encoding_independence(html, labeler); assert_snapshot!(test_and_annotate(html, labeler), @r###" </x> </xyz> </xyz > </xyz/> ^ ^^^ ^^^ ^^^ |