diff --git a/test/cli/testplatforms.js b/test/cli/testplatforms.js index ad85fcdc..cc51cd83 100644 --- a/test/cli/testplatforms.js +++ b/test/cli/testplatforms.js @@ -119,6 +119,7 @@ function checkForBigNonTypedArrays(obj, path='') { } async function testPlatform(platid, romname, maxframes, callback) { + if (!emu.PLATFORMS[platid]) throw new Error("no platform " + platid); var platform = new emu.PLATFORMS[platid](emudiv); await platform.start(); var emudiv = document.getElementById('emulator'); diff --git a/test/cli/testworker.js b/test/cli/testworker.js index cb7500f5..0c501cb8 100644 --- a/test/cli/testworker.js +++ b/test/cli/testworker.js @@ -11,6 +11,12 @@ global.onmessage({data:{preload:'cc65', platform:'apple2'}}); global.onmessage({data:{preload:'ca65', platform:'apple2'}}); global.onmessage({data:{preload:'cc65', platform:'c64'}}); global.onmessage({data:{preload:'ca65', platform:'c64'}}); +global.onmessage({data:{preload:'cc65', platform:'atari8'}}); +global.onmessage({data:{preload:'ca65', platform:'atari8'}}); +global.onmessage({data:{preload:'cc65', platform:'atari2600'}}); +global.onmessage({data:{preload:'ca65', platform:'atari2600'}}); +global.onmessage({data:{preload:'cc65', platform:'pce'}}); +global.onmessage({data:{preload:'ca65', platform:'pce'}}); global.onmessage({data:{preload:'sdcc'}}); global.onmessage({data:{preload:'inform6'}}); @@ -231,7 +237,7 @@ describe('Worker', function() { }); it('should compile apple2 skeleton with CC65', function(done) { var csource = ab2str(fs.readFileSync('presets/apple2/skeleton.cc65')); - compile('cc65', csource, 'apple2', done, 3023, 4, 0); + compile('cc65', csource, 'apple2', done, 3023+58, 4, 0); }); // TODO: test if compile, errors, then compile same file // TODO: params persist because of fixParamsWithDefines() @@ -262,7 +268,7 @@ describe('Worker', function() { doBuild(msgs, done2, 205, 0, 0); }); it('should compile CC65 flags', function(done) { - compile('cc65', '#define CC65_FLAGS -Or,-g,-j\nint main() {\nint x=1;\nreturn x+2;\n}', 'apple2', done, 416, 3); + compile('cc65', '#define CC65_FLAGS -Or,-g,-j\nint main() {\nint x=1;\nreturn x+2;\n}', 'apple2', done, 416+58, 3); }); /* it('should compile ACME', function(done) { diff --git a/test/roms/apple2/cosmic.c.rom b/test/roms/apple2/cosmic.c.rom index 02e20d9d..d9d06bf3 100644 Binary files a/test/roms/apple2/cosmic.c.rom and b/test/roms/apple2/cosmic.c.rom differ