diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_spans.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 08b5a31..718a176 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -308,6 +308,9 @@ fn doctype_id_spans() { }; let mut labels = Vec::new(); + if let Some(name_span) = doctype.name_span() { + labels.push((name_span, "name")); + } if let Some(public_id_span) = doctype.public_id_span() { labels.push((public_id_span, "public id")); } @@ -322,9 +325,10 @@ fn doctype_id_spans() { assert_snapshot!(annotated, @r###" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> - ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ system id - │ - public id + ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ system id + │ │ + │ public id + name "###); } |