diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 417ded762..778761845 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -99,7 +99,7 @@ const ArgumentTypeMap = (() => { * cloud variable. */ const cloudDataManager = () => { - const limit = 8; + const limit = 10; let count = 0; const canAddCloudVariable = () => count < limit; diff --git a/test/fixtures/cloud_variables_limit.sb2 b/test/fixtures/cloud_variables_limit.sb2 index e33de969d..954e97d69 100644 Binary files a/test/fixtures/cloud_variables_limit.sb2 and b/test/fixtures/cloud_variables_limit.sb2 differ diff --git a/test/fixtures/cloud_variables_limit.sb3 b/test/fixtures/cloud_variables_limit.sb3 index 4907e50f0..373f73a96 100644 Binary files a/test/fixtures/cloud_variables_limit.sb3 and b/test/fixtures/cloud_variables_limit.sb3 differ diff --git a/test/integration/cloud_variables_sb2.js b/test/integration/cloud_variables_sb2.js index 406298f71..5da62a23a 100644 --- a/test/integration/cloud_variables_sb2.js +++ b/test/integration/cloud_variables_sb2.js @@ -56,9 +56,9 @@ test('importing an sb2 project with cloud variables at the limit for a project', const stage = vm.runtime.targets[0]; const stageVars = Object.values(stage.variables); - t.equal(stageVars.length, 8); + t.equal(stageVars.length, 10); // All of the 8 stage variables should be cloud variables - t.equal(stageVars.filter(v => v.isCloud).length, 8); + t.equal(stageVars.filter(v => v.isCloud).length, 10); t.end(); }); @@ -83,7 +83,7 @@ test('importing an sb2 project with cloud variables exceeding the limit for a pr t.equal(stageVars.length, 15); // Only 8 of the variables should have the isCloud flag set to true - t.equal(stageVars.filter(v => v.isCloud).length, 8); + t.equal(stageVars.filter(v => v.isCloud).length, 10); t.end(); }); diff --git a/test/integration/cloud_variables_sb3.js b/test/integration/cloud_variables_sb3.js index 8d7b8c1cb..ea177b23a 100644 --- a/test/integration/cloud_variables_sb3.js +++ b/test/integration/cloud_variables_sb3.js @@ -54,9 +54,9 @@ test('importing an sb3 project with cloud variables at the limit for a project', const stage = vm.runtime.targets[0]; const stageVars = Object.values(stage.variables); - t.equal(stageVars.length, 8); - // All of the 8 stage variables should be cloud variables - t.equal(stageVars.filter(v => v.isCloud).length, 8); + t.equal(stageVars.length, 10); + // All of the 10 stage variables should be cloud variables + t.equal(stageVars.filter(v => v.isCloud).length, 10); t.end(); }); @@ -81,7 +81,7 @@ test('importing an sb3 project with cloud variables exceeding the limit for a pr t.equal(stageVars.length, 15); // Only 8 of the variables should have the isCloud flag set to true - t.equal(stageVars.filter(v => v.isCloud).length, 8); + t.equal(stageVars.filter(v => v.isCloud).length, 10); t.end(); }); diff --git a/test/unit/engine_runtime.js b/test/unit/engine_runtime.js index 741ab9c3f..368a57701 100644 --- a/test/unit/engine_runtime.js +++ b/test/unit/engine_runtime.js @@ -139,7 +139,7 @@ test('Project loaded emits runtime event', t => { }); }); -test('Cloud variable limit allows only 8 cloud variables', t => { +test('Cloud variable limit allows only 10 cloud variables', t => { // This is a test of just the cloud variable limit mechanism // The functions being tested below need to be used when // creating and deleting cloud variables in the runtime. @@ -148,7 +148,7 @@ test('Cloud variable limit allows only 8 cloud variables', t => { t.equal(rt.hasCloudData(), false); - for (let i = 0; i < 8; i++) { + for (let i = 0; i < 10; i++) { t.equal(rt.canAddCloudVariable(), true); rt.addCloudVariable(); // Adding a cloud variable should change the @@ -172,7 +172,7 @@ test('Cloud variable limit allows only 8 cloud variables', t => { rt.dispose(); t.equal(rt.hasCloudData(), false); - for (let i = 0; i < 8; i++) { + for (let i = 0; i < 10; i++) { t.equal(rt.canAddCloudVariable(), true); rt.addCloudVariable(); t.equal(rt.hasCloudData(), true);