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

fixed callbackGetRemote(); started on profiler

This commit is contained in:
Steven Hugg
2019-03-03 10:32:25 -06:00
parent ce019b5632
commit ab1500ccb6
8 changed files with 197 additions and 44 deletions
+6 -3
View File
@@ -76,7 +76,10 @@ describe('Store', function() {
var platform = {};
var project = new prj.CodeProject(worker, test_platform_id, platform, store);
var remote = [];
project.callbackGetRemote = function(path) { remote.push(path); return {fail:function(failfn){failfn({status:404})}} };
project.callbackGetRemote = function(path, success, datatype) {
remote.push(path);
success();
};
project.loadFiles(['local/test','test'], function(err, result) {
assert.equal(null, err);
assert.deepEqual(["presets/_TEST/test"], remote);
@@ -85,7 +88,7 @@ describe('Store', function() {
});
});
});
it('Should build linked project', function(done) {
localStorage.clear();
localItems['__migrated__TEST'] = 'true';
@@ -93,7 +96,7 @@ describe('Store', function() {
var expectmsgs = [
true,
{ preload: 'dasm', platform: '_TEST' },
{
{
buildsteps: [
{ path: "test.a", platform: "_TEST", tool: "dasm", mainfile:true, files:["test.a"] },
],