From 2a9b5bcc986fb37cd729ebf5ac61d749e271fcb8 Mon Sep 17 00:00:00 2001 From: Maribeth Moffatt Date: Fri, 5 Sep 2025 11:39:43 -0700 Subject: [PATCH] chore: add empty workspace scenario --- test/index.html | 1 + test/loadTestBlocks.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/test/index.html b/test/index.html index 53dbcf3e..9eb2a639 100644 --- a/test/index.html +++ b/test/index.html @@ -118,6 +118,7 @@ move value test blocks +
diff --git a/test/loadTestBlocks.js b/test/loadTestBlocks.js index 0a0b762d..16f0ab81 100644 --- a/test/loadTestBlocks.js +++ b/test/loadTestBlocks.js @@ -1206,6 +1206,12 @@ const comments = { }, }; +const emptyWorkspace = { + 'blocks': { + 'blocks': [], + }, +}; + /** * Loads saved state from local storage into the given workspace. * @param {Blockly.Workspace} workspace Blockly workspace to load into. @@ -1222,6 +1228,7 @@ export const load = function (workspace, scenarioString) { navigationTestBlocks, simpleCircle, 'sun': sunnyDay, + emptyWorkspace, }; // Don't emit events during loading. Blockly.Events.disable();