1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2026-04-21 21:16:51 +00:00

setCompileOutput always called; devel-6502 platform

This commit is contained in:
Steven Hugg
2020-10-16 06:14:40 -05:00
parent 67bf6c7310
commit d482145319
9 changed files with 97 additions and 22 deletions
+3 -1
View File
@@ -55,6 +55,7 @@ describe('Store', function () {
};
var project = new prj.CodeProject(worker, test_platform_id, platform, store);
project.callbackBuildStatus = function (b) { msgs.push(b) };
project.callbackBuildResult = function (b) { msgs.push(1) };
project.updateFile('test.a', ' lda #0');
project.setMainFile('test.a');
setTimeout(() => {
@@ -79,6 +80,7 @@ describe('Store', function () {
};
var project = new prj.CodeProject(worker, test_platform_id, platform, store);
project.callbackBuildStatus = function (b) { msgs.push(b) };
project.callbackBuildResult = function (b) { msgs.push(1) };
var buildresult = {
listings: {
test: {
@@ -87,7 +89,7 @@ describe('Store', function () {
}
};
worker.onmessage({ data: buildresult });
assert.deepEqual([false], msgs);
assert.deepEqual([false, 1], msgs);
var lst = buildresult.listings.test;
console.log(lst);
assert.deepEqual({ line: 3, offset: 61440, insns: 'a9 00', iscode: true },