diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/coverage_tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/coverage_tests.rs b/tests/integration/coverage_tests.rs index 6e9a1454c..ae732f25f 100644 --- a/tests/integration/coverage_tests.rs +++ b/tests/integration/coverage_tests.rs @@ -486,6 +486,9 @@ fn test_html_reporter() { assert_contains!(bar_ts_html, "<h1>Coverage report for bar.ts</h1>"); // Check <T> in source code is escaped to <T> assert_contains!(bar_ts_html, "<T>"); + // Check that line anchors are correctly referenced by line number links + assert_contains!(bar_ts_html, "<a name='L1'></a>"); + assert_contains!(bar_ts_html, "<a href='#L1'>1</a>"); let baz_index_html = tempdir .join("html") |