Skip to content

Commit 8b2496a

Browse files
Tests: coverage for Format/Erase dialog
1 parent bd8a9f1 commit 8b2496a

26 files changed

+632
-2
lines changed

bin/mametest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ while read -r arg disk; do
113113
done < <(echo $DISKARGS | xargs -n 2)
114114
DISKARGS="$NEWDISKARGS"
115115

116+
export UNFORMATTED_IMG="$TMPDIR/disks/unformatted.2mg"
117+
cp "res/unformatted.2mg" "$UNFORMATTED_IMG"
118+
116119
# --------------------------------------------------
117120
# Prepare snapshots dir
118121

notes/testplan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ For the following cases, open `/TESTS` and `/TESTS/FOLDER`:
905905
* Configure a system with a RAMCard, and set DeskTop to copy itself to the RAMCard on startup. Launch DeskTop. Create a shortcut for a non-executable file at the root of a volume, set to "Copy to RAMCard" "at first use". Run the shortcut. Verify that the "Files remaining" count bottoms out at 0. Close the alert. Drag a volume icon to another volume. Verify that the "Files remaining" count bottoms out at 0.
906906

907907

908-
## Format/Erase
908+
## Format/Erase - covered by `tests/format_erase*.lua` and `tests/format_inserted.lua`
909909

910910
* Repeat the following cases for Special > Format Disk and Special > Erase Disk:
911911
* Launch DeskTop. Run the command. Ensure left/right arrows move selection correctly.

res/disk_a.2mg

800 KB
Binary file not shown.

res/disk_b.2mg

800 KB
Binary file not shown.

res/disk_c.2mg

800 KB
Binary file not shown.

res/disk_d.2mg

800 KB
Binary file not shown.

res/disk_e.2mg

800 KB
Binary file not shown.

res/disk_f.2mg

800 KB
Binary file not shown.

res/disk_g.2mg

800 KB
Binary file not shown.

res/disk_h.2mg

800 KB
Binary file not shown.

0 commit comments

Comments
 (0)