diff options
| author | Martin Fischer <martin@push-f.com> | 2023-09-03 11:06:25 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 | 
| commit | 6e6bbcd053c6114a9fa75052b09e701eaa2f3465 (patch) | |
| tree | 609a4823541e28a40244ad018ad1bb3a9aeb0124 /tests | |
| parent | d56686deab81c8b50207b75a485cf26ec8502383 (diff) | |
feat: add Doctype::name_span
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      "###);  } | 
