1# Recycle bin repair
2
3`candidate` is the notebook
4`a_page_delete_lists_the_recycle_bin_it_finds_or_makes_and_leaves_an_unreadable_one` in
5`crates/notebook/tests/structure.rs` exports through `NOTEBOOK_RECYCLE_EXPORT`: a page
6deleted into a new recycle bin whose name the root TOC still listed for a bin gone from the
7folder (the stale entry goes, the new bin is listed), then deleted again into a bin whose
8TOC OneNote might name `OneNote Table Of Contents.onetoc2` and which did not list
9`OneNote_DeletedPages.one` (the bin's TOC is kept, the deleted pages placed under it and
10listed).
11
12`cold` is its fresh OneNote 2010 read: the recycle bin (`isRecycleBin`) holds "Deleted
13Pages" (`isDeletedPages`) with both deleted pages, and OneNote left every file byte for
14byte as written, so it repaired nothing. `tools/test_recycle_bin_repair.py` checks this
15without a VM.
16
17Regenerate with `NOTEBOOK_RECYCLE_EXPORT` set to a new directory while running the test,
18then `tools/native_runner.py OUTPUT COLD --expected-pages -1 --collect-notebook
19--screenshots`.