diff options
| author | Will Crichton <wcrichto@cs.stanford.edu> | 2021-08-26 14:43:12 -0700 |
|---|---|---|
| committer | Will Crichton <wcrichto@cs.stanford.edu> | 2021-10-06 19:44:50 -0700 |
| commit | 55bb51786e56a0096a550cf3f26b6c1aed83c872 (patch) | |
| tree | 763546579a8037bf10af7400c9c6e5e7ae6d658a /src/librustdoc/html/highlight/tests.rs | |
| parent | eea8f0a39a2423cc7a4acd31e3a7309853f22509 (diff) | |
| download | rust-55bb51786e56a0096a550cf3f26b6c1aed83c872.tar.gz rust-55bb51786e56a0096a550cf3f26b6c1aed83c872.zip | |
Move highlighting logic from JS to Rust
Continue migrating JS functionality Cleanup Fix compile error Clean up the diff Set toggle font to sans-serif
Diffstat (limited to 'src/librustdoc/html/highlight/tests.rs')
| -rw-r--r-- | src/librustdoc/html/highlight/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/highlight/tests.rs b/src/librustdoc/html/highlight/tests.rs index 450bbfea1ea..405bdf0d810 100644 --- a/src/librustdoc/html/highlight/tests.rs +++ b/src/librustdoc/html/highlight/tests.rs @@ -22,7 +22,7 @@ fn test_html_highlighting() { let src = include_str!("fixtures/sample.rs"); let html = { let mut out = Buffer::new(); - write_code(&mut out, src, Edition::Edition2018, None); + write_code(&mut out, src, Edition::Edition2018, None, None); format!("{}<pre><code>{}</code></pre>\n", STYLE, out.into_inner()) }; expect_file!["fixtures/sample.html"].assert_eq(&html); @@ -36,7 +36,7 @@ fn test_dos_backline() { println!(\"foo\");\r\n\ }\r\n"; let mut html = Buffer::new(); - write_code(&mut html, src, Edition::Edition2018, None); + write_code(&mut html, src, Edition::Edition2018, None, None); expect_file!["fixtures/dos_line.html"].assert_eq(&html.into_inner()); }); } @@ -50,7 +50,7 @@ let x = super::b::foo; let y = Self::whatever;"; let mut html = Buffer::new(); - write_code(&mut html, src, Edition::Edition2018, None); + write_code(&mut html, src, Edition::Edition2018, None, None); expect_file!["fixtures/highlight.html"].assert_eq(&html.into_inner()); }); } |
