rust/src/test
Guillaume Gomez 378f851e95
Rollup merge of #100956 - GuillaumeGomez:reduce-rightside-dom-size, r=notriddle
Reduce right-side DOM size

This is another follow-up of https://github.com/rust-lang/rust/pull/100429 but not in code blocks this time.

So the idea is: if there is only one element in the `.rightside` element, there is no need to wrap it, we can just create one node.

On each page, I run this JS: `document.getElementsByTagName('*').length`. Important to note: the bigger the number of elements inside the page, the greater the gain. It also doesn't work very nicely on std docs because there are a lot of version annotations. So with this PR, It allows to get the following results:

| file name | before this PR | with this PR | diff |
|-|-|-|-|
| std/default/trait.Default.html | 2189 | 1331 | 39.2% |
| std/vec/struct.Vec.html | 14073 | 13842 | 1.7% |
| std/fmt/trait.Debug.html | 5313 | 4907 | 7.7% |
| std/ops/trait.Index.html | 642 | 630 | 1.9% |
| gtk4/WidgetExt | 3269 | 3061 | 6.4% |

You can test it [here](https://rustdoc.crud.net/imperio/reduce-rightsize-dom-size/gtk4/prelude/trait.WidgetExt.html).

r? `@notriddle`
2022-08-26 14:08:47 +02:00
..
assembly Rollup merge of #100556 - Alex-Velez:patch-1, r=scottmcm 2022-08-21 16:54:01 +02:00
auxiliary
codegen Rollup merge of #100760 - krasimirgg:llvm-16-pic-level, r=nikic 2022-08-21 16:54:03 +02:00
codegen-units Warn about dead tuple struct fields 2022-08-03 12:17:23 +02:00
debuginfo [debuginfo] Fix msvc-pretty-enums debuginfo test for i686. 2022-08-15 10:50:09 +02:00
incremental Remove deferred sized checks 2022-08-16 22:30:56 +00:00
mir-opt ./x.py test --bless 2022-08-23 00:00:00 +00:00
pretty Add pp-exact test involving where T: 2022-06-16 17:03:47 -07:00
run-make Diagnose missing includes in run-make tests 2022-08-23 10:06:06 +02:00
run-make-fulldeps Diagnose missing includes in run-make tests 2022-08-23 10:06:06 +02:00
run-pass-valgrind Remove even more box syntax uses from src/test 2022-08-07 04:22:20 +02:00
rustdoc Rollup merge of #100956 - GuillaumeGomez:reduce-rightside-dom-size, r=notriddle 2022-08-26 14:08:47 +02:00
rustdoc-gui Add color test for anchors in all themes 2022-08-24 20:25:12 +02:00
rustdoc-js rustdoc: also index raw pointers 2022-05-31 11:21:55 -07:00
rustdoc-js-std Rollup merge of #96887 - notriddle:notriddle/as-raw-fd, r=jsha 2022-05-11 13:16:31 +09:00
rustdoc-json Update rustdoc-json test files 2022-08-18 11:00:21 +02:00
rustdoc-ui Rollup merge of #100229 - RalfJung:extra-const-ub-checks, r=lcnr 2022-08-12 20:39:11 +05:30
ui Rollup merge of #100978 - nnethercote:fix-100948, r=petrochenkov 2022-08-26 09:51:46 +09:00
ui-fulldeps fluent: update tests 2022-08-22 08:42:46 +02:00
COMPILER_TESTS.md