Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test-notepad-cmdline-open.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ emu.screenHeight = 600;
emu.commandLine = 'D:\\TEST.TXT';
emu.additionalFiles.set('TEST.TXT', testData.buffer);

emu.load(realArrayBuffer, peInfo, mockCanvas);
await emu.load(realArrayBuffer, peInfo, mockCanvas);
emu.run();

// Tick until message loop
Expand Down
2 changes: 1 addition & 1 deletion tests/test-notepad-open.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const peInfo = parsePE(realArrayBuffer);
const emu = new Emulator();
emu.screenWidth = 800;
emu.screenHeight = 600;
emu.load(realArrayBuffer, peInfo, mockCanvas);
await emu.load(realArrayBuffer, peInfo, mockCanvas);

// Enable API tracing
emu.traceApi = true;
Expand Down
2 changes: 1 addition & 1 deletion tests/test-notepad2003.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const extractedMenus = extractMenus(peInfo, realArrayBuffer);
const emu = new Emulator();
emu.screenWidth = 800;
emu.screenHeight = 600;
emu.load(realArrayBuffer, peInfo, mockCanvas);
await emu.load(realArrayBuffer, peInfo, mockCanvas);
if (extractedMenus.length > 0) emu.menuItems = extractedMenus[0].menu.items;
emu.run();

Expand Down
2 changes: 1 addition & 1 deletion tests/test-pop.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const princeBuf = readToArrayBuffer('C:/Users/Olivier/Documents/0_Perso/dosbox_d
const emu = new Emulator();
emu.screenWidth = 320; emu.screenHeight = 200;
emu.exeName = 'POP1DEMO/PRINCE.EXE'; emu.exePath = 'D:\\POP1DEMO\\PRINCE.EXE';
emu.load(princeBuf, parsePE(princeBuf), mockCanvas);
await emu.load(princeBuf, parsePE(princeBuf), mockCanvas);
emu.run();

for (let i = 0; i < 5000; i++) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-secondreality.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ emu.exePath = 'D:\\2nd_real\\SECOND.EXE';
// REALITY.FC must be findable by file_int's fallback to dosOpenFile
emu.additionalFiles.set('REALITY.FC', realityBuf);

emu.load(secondBuf, peInfo, mockCanvas);
await emu.load(secondBuf, peInfo, mockCanvas);
emu.run();

// Helper: dump MCB chain
Expand Down
2 changes: 1 addition & 1 deletion tests/test-sr-crash.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const emu = new Emulator();
emu.screenWidth = 320; emu.screenHeight = 200;
emu.exeName = '2nd_real/SECOND.EXE'; emu.exePath = 'D:\\2nd_real\\SECOND.EXE';
emu.additionalFiles.set('REALITY.FC', realityBuf);
emu.load(secondBuf, parsePE(secondBuf), mockCanvas);
await emu.load(secondBuf, parsePE(secondBuf), mockCanvas);
emu.run();
for (let t = 0; t < 500; t++) { if (emu.halted) break; emu.tick(); if (emu._dosWaitingForKey) { emu.dosKeyBuffer.push({ ascii: 0x0D, scan: 0x1C }); break; } }

Expand Down
2 changes: 1 addition & 1 deletion tests/test-winfile-crash.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ emu.screenHeight = 600;
emu.additionalFiles.set('COMMCTRL.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/COMMCTRL.DLL'));
emu.additionalFiles.set('VER.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/VER.DLL'));
emu.additionalFiles.set('SCONFIG.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/SCONFIG.DLL'));
emu.load(realArrayBuffer, peInfo, mockCanvas);
await emu.load(realArrayBuffer, peInfo, mockCanvas);
emu.run();

let ticks = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/test-winfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ emu.screenHeight = 600;
emu.additionalFiles.set('COMMCTRL.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/COMMCTRL.DLL'));
emu.additionalFiles.set('VER.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/VER.DLL'));
emu.additionalFiles.set('SCONFIG.DLL', readToArrayBuffer('H:/WINDOWS/SYSTEM/SCONFIG.DLL'));
emu.load(realArrayBuffer, peInfo, mockCanvas);
await emu.load(realArrayBuffer, peInfo, mockCanvas);
emu.run();

// Tick until message loop reached
Expand Down