Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
move value test blocks
</option>
<option value="comments">comments</option>
<option value="emptyWorkspace">empty workspace</option>
</select>
</div>
<div>
Expand Down
7 changes: 7 additions & 0 deletions test/loadTestBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -1222,6 +1228,7 @@ export const load = function (workspace, scenarioString) {
navigationTestBlocks,
simpleCircle,
'sun': sunnyDay,
emptyWorkspace,
};
// Don't emit events during loading.
Blockly.Events.disable();
Expand Down